homebridge-http-webhooks icon indicating copy to clipboard operation
homebridge-http-webhooks copied to clipboard

Add state toggling for switch

Open ctaepper opened this issue 1 year ago • 1 comments
trafficstars

This PR adds logic to the switch to toggle state instead of sending a fixed state=true or state=false. Now you can send state=toggle in order to make the switch go into the other state

Solves #177

ctaepper avatar Dec 26 '23 11:12 ctaepper

it would probably make sense to add this logic to all boolean accessories...

ctaepper avatar Dec 26 '23 11:12 ctaepper