NSPManager / NSPanelManager

Sonoff NSPanel custom firmware for responsive and intuitive use
https://discord.gg/RwXvAH56fE
172 stars 11 forks source link

Add toggle command to mqtt topics #188

Open psych0d0g opened 1 month ago

psych0d0g commented 1 month ago

as a user i have a battery powered 433mhz button near my bed to toggle the bedroom lights.. i can trigger custom mqtt messages by it using an sonoff rf_bridge. to toggle the bedroom lights from this button it would be needed for the nspanel code to be able to react to toggle commands in addition to 0 and 1 sent to the corresponding mqtt queues.

tpanajott commented 1 month ago

This should be easy enough to implement. I'm thinking that sending "2" would be a toggle instead.

psych0d0g commented 1 month ago

that "should" work aswell for me :)

psych0d0g commented 3 weeks ago

tested locally and working fine so far