Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have [GE Z-Wave light switches](https://www.amazon.com/GE-Repeater-Extender-SmartThings-1429...) installed in the wall. They have the expected "press up" and "press down" which go to my "passive" and "off" room modes accordingly.

They also have "press up 2x" "press up 3x" "hold up" "hold up released", and the same for the down direction.

My GF and I use these to switch the room between modes that we want. My main modes are "passive" "gaming" "movie" "meeting" "off" and "party".

The modes are a state machine written in both node-red, using a global state variable that is saved to disk, and homeassistant using a select template variable. They stay in sync through a node-red flow, so changing the mode from either has the exact same result.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: