Browsed the help PDF and didn't see this covered, maybe I missed it, apologize if I did.
I have a device that sends and receives MQTT. Think of it as a light switch. It sends an MQTT message (status) when the light is turned on at the device and can also be controlled via a received MQTT message from HS (control). The device sends its payload as two JSON values, status, and signal strength.
The published MQTT (status) message from the device is:
moteino/100/2/Office{"Led1":"Off","RSSI":-49}
In the plugin associations tab I have changed the published topic when HS value has changed (control) to be:
moteino/100/2/Office/Led1/control
This was done to separate the status and control MQTT messages so duplicate messages are not sent to the device. Previously if the status and control topics were the same, the device would receive its own status message. For instance, if it published on moteino/100/2/Office and subscribed to moteino/100/2/Office it would receive its own messages. Typically this is not a big deal but my devices are communicating across a low bandwidth, high range wireless network and need to reduce the bandwidth utilization as much as possible.
The issue is that when the device control buttons are pressed in HS, the device status in HS does not update. For instance, if I click the On button, the device in HS does not change from Off to On. The device does receive the MQTT message and turns on the light, but the HS device status does not change.
Attached are the device's MQTT and VS pairs. I left the VS pairs as they were created by the PI. Also tried the "echo" setting general tab but that didn't appear to help with this situation.
Am I doing something incorrectly? I believe this worked in the past but I haven't been able to test the plugin for several revisions due to the Mono issues in the past.
Thanks!
I have a device that sends and receives MQTT. Think of it as a light switch. It sends an MQTT message (status) when the light is turned on at the device and can also be controlled via a received MQTT message from HS (control). The device sends its payload as two JSON values, status, and signal strength.
The published MQTT (status) message from the device is:
moteino/100/2/Office{"Led1":"Off","RSSI":-49}
In the plugin associations tab I have changed the published topic when HS value has changed (control) to be:
moteino/100/2/Office/Led1/control
This was done to separate the status and control MQTT messages so duplicate messages are not sent to the device. Previously if the status and control topics were the same, the device would receive its own status message. For instance, if it published on moteino/100/2/Office and subscribed to moteino/100/2/Office it would receive its own messages. Typically this is not a big deal but my devices are communicating across a low bandwidth, high range wireless network and need to reduce the bandwidth utilization as much as possible.
The issue is that when the device control buttons are pressed in HS, the device status in HS does not update. For instance, if I click the On button, the device in HS does not change from Off to On. The device does receive the MQTT message and turns on the light, but the HS device status does not change.
Attached are the device's MQTT and VS pairs. I left the VS pairs as they were created by the PI. Also tried the "echo" setting general tab but that didn't appear to help with this situation.
Am I doing something incorrectly? I believe this worked in the past but I haven't been able to test the plugin for several revisions due to the Mono issues in the past.
Thanks!
Comment