MacWyznawca / homebridge-mqtt-switch-tasmota

Plugin to HomeBridge optimized to work with firmware Sonoff-Tasmota, MQTT.
MIT License
57 stars 18 forks source link

MQTT Toggle messages #40

Closed andyfitter closed 6 years ago

andyfitter commented 6 years ago

I have set my Sonoff T1 switches to have a 'ButtonTopic'. This effectively separates the 'button' from the relay. I require this as I want to do some complex automations within homekit. When the button is pressed, it sends an MQTT message something like this

cmnd/upstairs-landing/POWER1 TOGGLE

However, the plugin doesn't seem to know what to do with this and nothing gets sent up to Homekit. I was hoping to use this to drive some automations, but this doesn't appear to be possible, as the plugin seems to rely upon ON/OFF values rather than TOGGLE?

Maybe I am missing something fundamental here. Thanks for your help.

andyfitter commented 6 years ago

I figured that a new plugin was in order as it wasn't working this way. I created one for the Service.StatelessProgrammableSwitch type.