Thank you both for your prompt replies!
Can you show the device Custom States? What I have seen is that its the custom state that updates, but its not linked to the main Indigo state that you would expect.
See the attached screen shot - there don't appear to be any custom states for the switch devices.
In order for the Shims plugin to respond to the status type MQTT messages from the device, you need to have a trigger set up to queue those messages to the Shims plugin.
See the trigger configuration in the attached screenshot.
I also find it useful to enable debug logging on the MQTT Connector device so that I can see the exact topics and payloads that are received for each status update.
Here's a sample of the debug log when operating the switch from Indigo, and in response to actuation of the switch directly (pressing the button!). BTW, each device is called GPOx for "General Purpose Outlet" - not to be confused with Tasmota's GPIO's!!:
- Code: Select all
2 Nov 2020 at 10:07:03 pm
MQTT Shims Sent 'GPO1' On
MQTT Connector Debug Dalriada MQTT Broker: Message received: stat/tasmota_5854DC/RESULT, payload: {"POWER1":"ON"}
MQTT Connector Debug Dalriada MQTT Broker: Message received: stat/tasmota_5854DC/POWER1, payload: ON
MQTT Shims Sent 'GPO1' Off
MQTT Connector Debug Dalriada MQTT Broker: Message received: stat/tasmota_5854DC/RESULT, payload: {"POWER1":"OFF"}
MQTT Connector Debug Dalriada MQTT Broker: Message received: stat/tasmota_5854DC/POWER1, payload: OFF
2 Nov 2020 at 10:07:27 pm
MQTT Shims Sent 'GPO2' On
MQTT Connector Debug Dalriada MQTT Broker: Message received: stat/tasmota_5854DC/RESULT, payload: {"POWER2":"ON"}
MQTT Connector Debug Dalriada MQTT Broker: Message received: stat/tasmota_5854DC/POWER2, payload: ON
MQTT Shims Sent 'GPO2' Off
MQTT Connector Debug Dalriada MQTT Broker: Message received: stat/tasmota_5854DC/RESULT, payload: {"POWER2":"OFF"}
MQTT Connector Debug Dalriada MQTT Broker: Message received: stat/tasmota_5854DC/POWER2, payload: OFF
2 Nov 2020 at 10:07:44 pm
MQTT Connector Debug Dalriada MQTT Broker: Message received: stat/tasmota_5854DC/RESULT, payload: {"POWER1":"ON"}
MQTT Connector Debug Dalriada MQTT Broker: Message received: stat/tasmota_5854DC/POWER1, payload: ON
MQTT Connector Debug Dalriada MQTT Broker: Message received: stat/tasmota_5854DC/RESULT, payload: {"POWER1":"OFF"}
MQTT Connector Debug Dalriada MQTT Broker: Message received: stat/tasmota_5854DC/POWER1, payload: OFF
2 Nov 2020 at 10:08:02 pm
MQTT Connector Debug Dalriada MQTT Broker: Message received: stat/tasmota_5854DC/RESULT, payload: {"POWER2":"ON"}
MQTT Connector Debug Dalriada MQTT Broker: Message received: stat/tasmota_5854DC/POWER2, payload: ON
MQTT Connector Debug Dalriada MQTT Broker: Message received: stat/tasmota_5854DC/RESULT, payload: {"POWER2":"OFF"}
MQTT Connector Debug Dalriada MQTT Broker: Message received: stat/tasmota_5854DC/POWER2, payload: OFF
I hope this extra info can provide you with a few more clues! As you can see from the time stamps in the log excerpt above, it's getting kind of late for me - and after trying to fathom this matter, my brain hurts!!
Perhaps it'll all be clearer after a good night's sleep!!
Thanks again for your assistance!
mclass