Hi,
I started a couple of weeks with Home Assistant and it is already working very well, except some complicated automation rules.
Then I noticed Node Red and I think it could help me. I installed it just a couple of days ago and I was checking the internet for some tips and tricks.
I have already some very basic automation tasks running, but for more sophisticated rules I need some kickoff support.
What I want to do:
- Check SolarRadiation of outside weatherstation
- If solar radiation is above 250 for 5 Minutes and outside temp is higher then 17 degrees, then I want to close the shutter of my roof windows
- If solar radiation is below 250 for 5 Minutes, then the shutter should be opened again
This is my test flow:
The second output of the timer is sending a STOP Message.
My issue is, that the trigger is not triggered only one time, it is triggered whenever a change on the solar radiation happens, regardless if it is still below or above the threshold.
[{"id":"f656a892.f6c508","type":"trigger-state","z":"e5f37dc0.ca69","name":"Sonnenstrahlung","server":"e76cb70.9b3bd48","entityid":"sensor.pws_solarradiation","debugenabled":false,"constraints":[{"id":"b71wfwmloq39","targetType":"this_entity","targetValue":"","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"greater_than","comparatorValueDatatype":"str","comparatorValue":"250"}],"constraintsmustmatch":"all","outputs":2,"customoutputs":[],"x":130,"y":600,"wires":[["4dee1d93.1e5d54"],["8eece640.753448"]]},{"id":"a3a38b20.1a0ff8","type":"api-current-state","z":"e5f37dc0.ca69","name":"Außentemperatur größer 17 Grad","server":"e76cb70.9b3bd48","halt_if":">17.0","override_topic":true,"override_payload":true,"entity_id":"sensor.pws_temp_c","x":680,"y":560,"wires":[["8df7a5a6.2b9c98"]]},{"id":"4dee1d93.1e5d54","type":"stoptimer","z":"e5f37dc0.ca69","duration":"5","units":"Minute","payloadtype":"str","payloadval":"STOP","name":"5 Minuten Delay","x":380,"y":540,"wires":[["a3a38b20.1a0ff8"],["8eece640.753448"]]},{"id":"8eece640.753448","type":"stoptimer","z":"e5f37dc0.ca69","duration":"5","units":"Minute","payloadtype":"str","payloadval":"STOP","name":"5 Minuten Delay","x":380,"y":640,"wires":[["6876f54c.d9d2cc"],["4dee1d93.1e5d54"]]},{"id":"8df7a5a6.2b9c98","type":"api-call-service","z":"e5f37dc0.ca69","name":"","server":"e76cb70.9b3bd48","service_domain":"notify","service":"pushover_johannes","data":"{ \"message\": \"Arbeitszimmer Beschattung ein\", \"title\": \"NR: Hohe Sonneneinstrahlung\" }","mergecontext":"","x":990,"y":560,"wires":[[]]},{"id":"6876f54c.d9d2cc","type":"api-call-service","z":"e5f37dc0.ca69","name":"","server":"e76cb70.9b3bd48","service_domain":"notify","service":"pushover_johannes","data":"{ \"message\": \"Arbeitszimmer Beschattung aus\", \"title\": \"NR: Niedrige Sonneneinstrahlung\" }","mergecontext":"","x":990,"y":620,"wires":[[]]},{"id":"e76cb70.9b3bd48","type":"server","z":"","name":"Home Assistant","url":"https://SERVERNAME","pass":"PASSWORD"}]
Maybe someone could give me some hints?
Br,
Johannes