-
Hi, I have started using the "Heating thermostat with auto ON/OFF" service, which works pretty well. My question is : after a restart of node-red following a power drop for example, is there a way that the thermostat in Homekit is ON by default, remembering the last temperature I did set ? Because for the moment it restarts OFF. Thanks, JF |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Hey, you can achieve it using different node-red flows and by persisting the state and reading it after restart. |
Beta Was this translation helpful? Give feedback.
-
Hi, [{"id":"58ea99419bf15552","type":"inject","z":"0611fdba4878ab79","name":"0.1s","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"{\"TargetHeatingCoolingState\": 1}","payloadType":"json","x":150,"y":960,"wires":[[]]}] |
Beta Was this translation helpful? Give feedback.
-
Thanks. That indeed the right way to do. Now I have to figure out how to set the requested temperature to the previous set value |
Beta Was this translation helpful? Give feedback.
-
That indeed works, thanks ! Only difference is that I used a change node instead of function node as @GogoVega advised. |
Beta Was this translation helpful? Give feedback.
Hi,
You can use an
inject
node (inject once option) which will send a message after restarting Node-RED:Like this (ctrl + i) 😉