Integration Solutions using MQTT

This is great news - as an aside, I’ve noticed that several of the last few updates haven’t been pushed to your github…any chance these changes could be pushed?

Yes I need to get better about keeping it updated :grimacing:

1 Like

hi any chance of adding temperature to the mqtt thing
thanks
martin

There is a 100% chance…

Temperature device added and in driver version 2022-12-17T21:00:23.582550388 that I’ve just pushed out.

You will need to delete your Creator device and create a new one with an Add device / Scan for nearby devices, and re-enter your Broker config info in device Settings. Then you will see Temperature as an option on the device creation list. No worries about re-creating the Creator device - it will not impact your existing MQTT devices.

3 Likes

great thank you ,
martin

hi sorry to be a pain,
i cant seem to get it working ,
the device is sending this


this is how i have it set up in the app

i had trouble getting the temperature in node red and was told The mqtt reply is a javascript object.not sure what one of them is .

in mqtt explorer i get


First, you need to set the ‘Expected Message Format’ to ‘JSON’

Then for the JSON Key, I think you’ll need it to be ‘DS18B20.Temperature’

1 Like

thanks that worked great ,

martin

Would a SecuritySystem device be do-able? This would ideally support different values for receiving state vs sending actions, similar to what was added to the MQTT lock device.

Thanks again - this driver is awesome!!

(for reference)

1 Like

I have started using the the MQTT Devices driver.

I installed Mosquitto MQTT broker on Raspberry Pi.
I have temperature measurements connected to Raspberry Pi.
The driver connected to the MQTT broker and
I added Temperature device and configured to the device’s settings the MQTT topic.

Getting this to work was much easier than using virtual temperature device that is updated using SmartThings API.

Again great driver from Todd
Thank you

2 Likes

not sure if this was mentioned before or if anyone else had this issue, but the mqtt switch seems to stop working after about 2 days, to fix it this i just press the refresh button the device, however can this thing be programmed to auto refresh after a day or something?

Just wanted to say thank you for updating the github!

Is anyone else seeing the issue that @Robert_Singh describes above?

i had a couple of temperature ones the other day that did it but the rest were fine
and havent since
martin

i just checked and the mqtt switch i use from node red isnt working in smartrthings , i ran logcat but nothing from the switch when pressed in node red , topic is smartthings/switch1

Select a driver. 7
2022-12-22T11:31:56.117612223+00:00 DEBUG MQTT Devices V1 Processing received data msg: 15.40
2022-12-22T11:31:56.120727348+00:00 DEBUG MQTT Devices V1 From topic: sensor/temperature_celsius
2022-12-22T11:31:56.126458432+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:31:56.129544473+00:00 DEBUG MQTT Devices V1 Match for spare room
2022-12-22T11:31:56.132877348+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“temperature”,“capability_id”:“temperatureMeasurement”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:31:56.143968682+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“vtemp”,“capability_id”:“partyvoice23922.vtempset”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:31:58.146367640+00:00 DEBUG MQTT Devices V1 Processing received data msg: 15.50
2022-12-22T11:31:58.149532890+00:00 DEBUG MQTT Devices V1 From topic: sensor/temperature_celsius
2022-12-22T11:31:58.155408140+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:31:58.158432890+00:00 DEBUG MQTT Devices V1 Match for spare room
2022-12-22T11:31:58.161888807+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“temperature”,“capability_id”:“temperatureMeasurement”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.5}}
2022-12-22T11:31:58.186504349+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“vtemp”,“capability_id”:“partyvoice23922.vtempset”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.5}}
2022-12-22T11:32:00.178305224+00:00 DEBUG MQTT Devices V1 Processing received data msg: 15.40
2022-12-22T11:32:00.181402474+00:00 DEBUG MQTT Devices V1 From topic: sensor/temperature_celsius
2022-12-22T11:32:00.188381349+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:32:00.191430807+00:00 DEBUG MQTT Devices V1 Match for spare room
2022-12-22T11:32:00.195053224+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“temperature”,“capability_id”:“temperatureMeasurement”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:32:00.205971682+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“vtemp”,“capability_id”:“partyvoice23922.vtempset”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:32:02.205063182+00:00 DEBUG MQTT Devices V1 Processing received data msg: 15.40
2022-12-22T11:32:02.208468474+00:00 DEBUG MQTT Devices V1 From topic: sensor/temperature_celsius
2022-12-22T11:32:02.219443849+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:32:02.222340891+00:00 DEBUG MQTT Devices V1 Match for spare room
2022-12-22T11:32:02.225818891+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“temperature”,“capability_id”:“temperatureMeasurement”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:32:02.243487057+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“vtemp”,“capability_id”:“partyvoice23922.vtempset”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:32:04.244155058+00:00 DEBUG MQTT Devices V1 Processing received data msg: 15.40
2022-12-22T11:32:04.251134141+00:00 DEBUG MQTT Devices V1 From topic: sensor/temperature_celsius
2022-12-22T11:32:04.257496058+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:32:04.260439391+00:00 DEBUG MQTT Devices V1 Match for spare room
2022-12-22T11:32:04.266905224+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“temperature”,“capability_id”:“temperatureMeasurement”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:32:04.277994266+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“vtemp”,“capability_id”:“partyvoice23922.vtempset”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:32:04.385533099+00:00 DEBUG MQTT Devices V1 driver device thread event handled
2022-12-22T11:32:06.276332308+00:00 DEBUG MQTT Devices V1 Processing received data msg: 15.40
2022-12-22T11:32:06.279578808+00:00 DEBUG MQTT Devices V1 From topic: sensor/temperature_celsius
2022-12-22T11:32:06.285555975+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:32:06.288576933+00:00 DEBUG MQTT Devices V1 Match for spare room
2022-12-22T11:32:06.292018391+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“temperature”,“capability_id”:“temperatureMeasurement”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:32:06.316873141+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“vtemp”,“capability_id”:“partyvoice23922.vtempset”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:32:08.304800600+00:00 DEBUG MQTT Devices V1 Processing received data msg: 15.40
2022-12-22T11:32:08.308079225+00:00 DEBUG MQTT Devices V1 From topic: sensor/temperature_celsius
2022-12-22T11:32:08.366827058+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:32:08.369871850+00:00 DEBUG MQTT Devices V1 Match for spare room
2022-12-22T11:32:08.373250641+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“temperature”,“capability_id”:“temperatureMeasurement”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:32:08.384075975+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“vtemp”,“capability_id”:“partyvoice23922.vtempset”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:32:10.325314142+00:00 DEBUG MQTT Devices V1 Processing received data msg: 15.40
2022-12-22T11:32:10.329013725+00:00 DEBUG MQTT Devices V1 From topic: sensor/temperature_celsius
2022-12-22T11:32:10.335294642+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:32:10.338585225+00:00 DEBUG MQTT Devices V1 Match for spare room
2022-12-22T11:32:10.342278892+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“temperature”,“capability_id”:“temperatureMeasurement”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:32:10.358112850+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“vtemp”,“capability_id”:“partyvoice23922.vtempset”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:32:10.759410850+00:00 DEBUG MQTT Devices V1 Processing received data msg: 4
2022-12-22T11:32:10.766296642+00:00 DEBUG MQTT Devices V1 From topic: sound_sensor
2022-12-22T11:32:10.772109933+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:32:10.775101808+00:00 DEBUG MQTT Devices V1 Match for MQTT Sound
2022-12-22T11:32:10.778277433+00:00 DEBUG MQTT Devices V1 Sound value received: 4
2022-12-22T11:32:10.781680142+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“volume”,“capability_id”:“audioVolume”,“component_id”:“main”,“state”:{“value”:4}}
2022-12-22T11:32:10.792457975+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“sound”,“capability_id”:“soundSensor”,“component_id”:“main”,“state”:{“value”:“not detected”}}
2022-12-22T11:32:12.347097517+00:00 DEBUG MQTT Devices V1 Processing received data msg: 15.40
2022-12-22T11:32:12.350173184+00:00 DEBUG MQTT Devices V1 From topic: sensor/temperature_celsius
2022-12-22T11:32:12.356125059+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:32:12.359170684+00:00 DEBUG MQTT Devices V1 Match for spare room
2022-12-22T11:32:12.362658350+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“temperature”,“capability_id”:“temperatureMeasurement”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:32:12.374159100+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“vtemp”,“capability_id”:“partyvoice23922.vtempset”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:32:12.625930725+00:00 DEBUG MQTT Devices V1 Processing received data msg: 1
2022-12-22T11:32:12.629185892+00:00 DEBUG MQTT Devices V1 From topic: sound_sensor
2022-12-22T11:32:12.634810100+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:32:12.637733892+00:00 DEBUG MQTT Devices V1 Match for MQTT Sound
2022-12-22T11:32:12.640627475+00:00 DEBUG MQTT Devices V1 Sound value received: 1
2022-12-22T11:32:12.643828934+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“volume”,“capability_id”:“audioVolume”,“component_id”:“main”,“state”:{“value”:1}}
2022-12-22T11:32:12.654336225+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“sound”,“capability_id”:“soundSensor”,“component_id”:“main”,“state”:{“value”:“not detected”}}
listening for logs… done

when pressed in smartthings topic smartthings/switch2

Select a driver. 7
2022-12-22T11:36:52.691609625+00:00 DEBUG MQTT Devices V1 Processing received data msg: 8
2022-12-22T11:36:52.697213500+00:00 DEBUG MQTT Devices V1 From topic: sound_sensor
2022-12-22T11:36:52.707346292+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:36:52.713068125+00:00 DEBUG MQTT Devices V1 Match for MQTT Sound
2022-12-22T11:36:52.717972250+00:00 DEBUG MQTT Devices V1 Sound value received: 8
2022-12-22T11:36:52.723609292+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“volume”,“capability_id”:“audioVolume”,“component_id”:“main”,“state”:{“value”:8}}
2022-12-22T11:36:52.743094834+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“sound”,“capability_id”:“soundSensor”,“component_id”:“main”,“state”:{“value”:“detected”}}
2022-12-22T11:36:54.025497876+00:00 DEBUG MQTT Devices V1 Processing received data msg: 5
2022-12-22T11:36:54.035233251+00:00 DEBUG MQTT Devices V1 From topic: sound_sensor
2022-12-22T11:36:54.069841917+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:36:54.072797876+00:00 DEBUG MQTT Devices V1 Match for MQTT Sound
2022-12-22T11:36:54.075870459+00:00 DEBUG MQTT Devices V1 Sound value received: 5
2022-12-22T11:36:54.079223709+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“volume”,“capability_id”:“audioVolume”,“component_id”:“main”,“state”:{“value”:5}}
2022-12-22T11:36:54.090266417+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“sound”,“capability_id”:“soundSensor”,“component_id”:“main”,“state”:{“value”:“detected”}}
2022-12-22T11:36:54.282941292+00:00 DEBUG MQTT Devices V1 Processing received data msg: 15.40
2022-12-22T11:36:54.286145667+00:00 DEBUG MQTT Devices V1 From topic: sensor/temperature_celsius
2022-12-22T11:36:54.292336876+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:36:54.370802167+00:00 DEBUG MQTT Devices V1 Match for spare room
2022-12-22T11:36:54.375315709+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“temperature”,“capability_id”:“temperatureMeasurement”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:36:54.389560126+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“vtemp”,“capability_id”:“partyvoice23922.vtempset”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:36:54.766770501+00:00 TRACE MQTT Devices V1 Received event with handler capability
2022-12-22T11:36:54.780231001+00:00 INFO MQTT Devices V1 <Device: c48b3040-c2d3-447f-86c4-f19b1399ed50 (MQTT node red)> received command: {“args”:{},“capability”:“switch”,“command”:“on”,“component”:“main”,“positional_args”:{}}
2022-12-22T11:36:54.783593542+00:00 TRACE MQTT Devices V1 Found CapabilityCommandDispatcher handler in MQTT Devices
2022-12-22T11:36:54.786870751+00:00 INFO MQTT Devices V1 Switch triggered: on
2022-12-22T11:36:54.798566292+00:00 INFO MQTT Devices V1 <Device: c48b3040-c2d3-447f-86c4-f19b1399ed50 (MQTT node red)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“on”}}
2022-12-22T11:36:54.822926584+00:00 DEBUG MQTT Devices V1 Message “ON” published to topic smartthings/switch/2 with qos=1
2022-12-22T11:36:54.829369709+00:00 DEBUG MQTT Devices V1 MQTT node red device thread event handled
2022-12-22T11:36:55.334770251+00:00 DEBUG MQTT Devices V1 Processing received data msg: 8
2022-12-22T11:36:55.337956709+00:00 DEBUG MQTT Devices V1 From topic: sound_sensor
2022-12-22T11:36:55.343495834+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:36:55.346569376+00:00 DEBUG MQTT Devices V1 Match for MQTT Sound
2022-12-22T11:36:55.349528959+00:00 DEBUG MQTT Devices V1 Sound value received: 8
2022-12-22T11:36:55.352749251+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“volume”,“capability_id”:“audioVolume”,“component_id”:“main”,“state”:{“value”:8}}
2022-12-22T11:36:55.373665376+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“sound”,“capability_id”:“soundSensor”,“component_id”:“main”,“state”:{“value”:“detected”}}
2022-12-22T11:36:55.756452792+00:00 DEBUG MQTT Devices V1 Processing received data msg: 11
2022-12-22T11:36:55.759483501+00:00 DEBUG MQTT Devices V1 From topic: sound_sensor
2022-12-22T11:36:55.765075751+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:36:55.767991917+00:00 DEBUG MQTT Devices V1 Match for MQTT Sound
2022-12-22T11:36:55.770901042+00:00 DEBUG MQTT Devices V1 Sound value received: 11
2022-12-22T11:36:55.774116001+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“volume”,“capability_id”:“audioVolume”,“component_id”:“main”,“state”:{“value”:11}}
2022-12-22T11:36:55.784565084+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“sound”,“capability_id”:“soundSensor”,“component_id”:“main”,“state”:{“value”:“detected”}}
2022-12-22T11:36:55.878477667+00:00 DEBUG MQTT Devices V1 Processing received data msg: 14
2022-12-22T11:36:55.881464501+00:00 DEBUG MQTT Devices V1 From topic: sound_sensor
2022-12-22T11:36:55.887743167+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:36:55.890656001+00:00 DEBUG MQTT Devices V1 Match for MQTT Sound
2022-12-22T11:36:55.893624417+00:00 DEBUG MQTT Devices V1 Sound value received: 14
2022-12-22T11:36:55.896877042+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“volume”,“capability_id”:“audioVolume”,“component_id”:“main”,“state”:{“value”:14}}
2022-12-22T11:36:55.907363251+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“sound”,“capability_id”:“soundSensor”,“component_id”:“main”,“state”:{“value”:“detected”}}
2022-12-22T11:36:56.000457209+00:00 DEBUG MQTT Devices V1 Processing received data msg: 9
2022-12-22T11:36:56.003430792+00:00 DEBUG MQTT Devices V1 From topic: sound_sensor
2022-12-22T11:36:56.009950834+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:36:56.012783417+00:00 DEBUG MQTT Devices V1 Match for MQTT Sound
2022-12-22T11:36:56.015921376+00:00 DEBUG MQTT Devices V1 Sound value received: 9
2022-12-22T11:36:56.019243042+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“volume”,“capability_id”:“audioVolume”,“component_id”:“main”,“state”:{“value”:9}}
2022-12-22T11:36:56.029721167+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“sound”,“capability_id”:“soundSensor”,“component_id”:“main”,“state”:{“value”:“detected”}}
2022-12-22T11:36:56.313463001+00:00 DEBUG MQTT Devices V1 Processing received data msg: 15.30
2022-12-22T11:36:56.316896376+00:00 DEBUG MQTT Devices V1 From topic: sensor/temperature_celsius
2022-12-22T11:36:56.322632084+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:36:56.325740876+00:00 DEBUG MQTT Devices V1 Match for spare room
2022-12-22T11:36:56.329204167+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“temperature”,“capability_id”:“temperatureMeasurement”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.3}}
2022-12-22T11:36:56.350660376+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“vtemp”,“capability_id”:“partyvoice23922.vtempset”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.3}}
2022-12-22T11:36:56.367328667+00:00 DEBUG MQTT Devices V1 Processing received data msg: 5
2022-12-22T11:36:56.370252501+00:00 DEBUG MQTT Devices V1 From topic: sound_sensor
2022-12-22T11:36:56.376244459+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:36:56.379148126+00:00 DEBUG MQTT Devices V1 Match for MQTT Sound
2022-12-22T11:36:56.382029501+00:00 DEBUG MQTT Devices V1 Sound value received: 5
2022-12-22T11:36:56.385281917+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“volume”,“capability_id”:“audioVolume”,“component_id”:“main”,“state”:{“value”:5}}
2022-12-22T11:36:56.398729376+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“sound”,“capability_id”:“soundSensor”,“component_id”:“main”,“state”:{“value”:“detected”}}
2022-12-22T11:36:57.325124709+00:00 DEBUG MQTT Devices V1 Processing received data msg: 2
2022-12-22T11:36:57.338437876+00:00 DEBUG MQTT Devices V1 From topic: sound_sensor
2022-12-22T11:36:57.349629501+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:36:57.355411501+00:00 DEBUG MQTT Devices V1 Match for MQTT Sound
2022-12-22T11:36:57.358686376+00:00 DEBUG MQTT Devices V1 Sound value received: 2
2022-12-22T11:36:57.364719084+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“volume”,“capability_id”:“audioVolume”,“component_id”:“main”,“state”:{“value”:2}}
2022-12-22T11:36:57.380316584+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“sound”,“capability_id”:“soundSensor”,“component_id”:“main”,“state”:{“value”:“not detected”}}
2022-12-22T11:36:57.895937668+00:00 TRACE MQTT Devices V1 Received event with handler capability
2022-12-22T11:36:57.910219209+00:00 INFO MQTT Devices V1 <Device: c48b3040-c2d3-447f-86c4-f19b1399ed50 (MQTT node red)> received command: {“args”:{},“capability”:“switch”,“command”:“off”,“component”:“main”,“positional_args”:{}}
2022-12-22T11:36:57.913633334+00:00 TRACE MQTT Devices V1 Found CapabilityCommandDispatcher handler in MQTT Devices
2022-12-22T11:36:57.917031793+00:00 INFO MQTT Devices V1 Switch triggered: off
2022-12-22T11:36:57.920277376+00:00 INFO MQTT Devices V1 <Device: c48b3040-c2d3-447f-86c4-f19b1399ed50 (MQTT node red)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“off”}}
2022-12-22T11:36:57.934035626+00:00 DEBUG MQTT Devices V1 Message “OFF” published to topic smartthings/switch/2 with qos=1
2022-12-22T11:36:57.937562668+00:00 DEBUG MQTT Devices V1 MQTT node red device thread event handled
2022-12-22T11:36:58.339422668+00:00 DEBUG MQTT Devices V1 Processing received data msg: 15.40
2022-12-22T11:36:58.342444501+00:00 DEBUG MQTT Devices V1 From topic: sensor/temperature_celsius
2022-12-22T11:36:58.348300793+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:36:58.351231501+00:00 DEBUG MQTT Devices V1 Match for spare room
2022-12-22T11:36:58.354738751+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“temperature”,“capability_id”:“temperatureMeasurement”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:36:58.366860043+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“vtemp”,“capability_id”:“partyvoice23922.vtempset”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:37:00.033524001+00:00 DEBUG MQTT Devices V1 Processing received data msg: 5
2022-12-22T11:37:00.036968835+00:00 DEBUG MQTT Devices V1 From topic: sound_sensor
2022-12-22T11:37:00.055445418+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:37:00.059823210+00:00 DEBUG MQTT Devices V1 Match for MQTT Sound
2022-12-22T11:37:00.062860876+00:00 DEBUG MQTT Devices V1 Sound value received: 5
2022-12-22T11:37:00.066238585+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“volume”,“capability_id”:“audioVolume”,“component_id”:“main”,“state”:{“value”:5}}
2022-12-22T11:37:00.077548710+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“sound”,“capability_id”:“soundSensor”,“component_id”:“main”,“state”:{“value”:“detected”}}
2022-12-22T11:37:00.369634376+00:00 DEBUG MQTT Devices V1 Processing received data msg: 15.40
2022-12-22T11:37:00.376911210+00:00 DEBUG MQTT Devices V1 From topic: sensor/temperature_celsius
2022-12-22T11:37:00.383856418+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:37:00.386955751+00:00 DEBUG MQTT Devices V1 Match for spare room
2022-12-22T11:37:00.390409668+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“temperature”,“capability_id”:“temperatureMeasurement”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:37:00.401502085+00:00 INFO MQTT Devices V1 <Device: 271c1352-4e14-44ad-9e6b-77128f1299b9 (spare room)> emitting event: {“attribute_id”:“vtemp”,“capability_id”:“partyvoice23922.vtempset”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:15.4}}
2022-12-22T11:37:01.110746626+00:00 DEBUG MQTT Devices V1 Processing received data msg: 8
2022-12-22T11:37:01.113926626+00:00 DEBUG MQTT Devices V1 From topic: sound_sensor
2022-12-22T11:37:01.119959085+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:37:01.122890293+00:00 DEBUG MQTT Devices V1 Match for MQTT Sound
2022-12-22T11:37:01.126049460+00:00 DEBUG MQTT Devices V1 Sound value received: 8
2022-12-22T11:37:01.129311085+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“volume”,“capability_id”:“audioVolume”,“component_id”:“main”,“state”:{“value”:8}}
2022-12-22T11:37:01.139972585+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“sound”,“capability_id”:“soundSensor”,“component_id”:“main”,“state”:{“value”:“detected”}}
2022-12-22T11:37:01.322452751+00:00 DEBUG MQTT Devices V1 Processing received data msg: 11
2022-12-22T11:37:01.325565460+00:00 DEBUG MQTT Devices V1 From topic: sound_sensor
2022-12-22T11:37:01.331368251+00:00 DEBUG MQTT Devices V1 # device matches for topic: 1
2022-12-22T11:37:01.334307210+00:00 DEBUG MQTT Devices V1 Match for MQTT Sound
2022-12-22T11:37:01.337463585+00:00 DEBUG MQTT Devices V1 Sound value received: 11
2022-12-22T11:37:01.340668210+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“volume”,“capability_id”:“audioVolume”,“component_id”:“main”,“state”:{“value”:11}}
2022-12-22T11:37:01.351043043+00:00 INFO MQTT Devices V1 <Device: 47997d41-c8a6-4622-bd93-363d3ca22afc (MQTT Sound)> emitting event: {“attribute_id”:“sound”,“capability_id”:“soundSensor”,“component_id”:“main”,“state”:{“value”:“detected”}}
listening for logs… done

My setup has been rock solid. No issues here, but I’ll keep an eye on it if something does pop up.

Does the switch still show as subscribed in the Creator device subscribed topics list?

And does pushing the Refresh button in the Creator device restore the switch updates?

1 Like

hi yes the switch shows as subscribed in the creator and after pushing refresh button in the creator it works fine.

OK thanks; it sounds like somehow the subscription is getting lost. Is there any chance that either your broker or hub had gone through a restart? I need to do some tests to see if the broker restores subscriptions if that happens.