node-red a full home automation example
I'm not putting this publicly on github quite yet, though feel free to ask.
It is my attempt to put my home automation on a dashboard integrated with Alexa, Logitech Harmony and in these days of scary fuel bills my solar panels and consumption monitoring smart plugs.
You may or may not want my flows in all their glory, it is my house after all, but the following bits are of note.
- A reliable Tuya authentication mechanism.
- Solax solar cloud REST reading.
- A much extended set of harmony remote integration nodes compared to the original node-red-contrib-harmony repository I forked from.
- A way to read whether a Virgin TV box is on or off so a power toggle can be sent correctly.
- Hue lights control. Nothing special but might be easier than starting from scratch.
- A more useful version of the "sum" node that helps with power aggregation functions.
- Examples of using the alexa-node-red package so I can talk to Alexa and start node-red flows.
- A flow to turn an immersion heater on when there is enough surplus solar power.
- A harmony remote control layout that is easier and quicker than using the harmony app.
- Amp/TV modes that click between home theatre mode and sound from the TV. This uses two harmony activities but rigs harmony favourites that changing channels can maintain the current activity.
- Use of a new github repo https://github.com/marsjupiter1/node-red-contrib-tuya-auth which contains nodes for tuya sign/auth/get/post.
- A subflow that can both use post and get and different tuya credentials and which handles re-authentication and the likely error conditions. This forms the heart now of the system communicating with tuya.
- A useful way of setting up devices across tuya accounts.
Post a Comment