Hello,
already searched but not found really ananswer. So sorry if already answered…
I want to give my blinds some “intelligence”. So beside other checks, i want to open the blinds if it is too windy.
I created one input_number to be able to adjust the value in the UI and one input_boolean which is then used to open the blinds.
Therefore, i created this flow in node-red:
[{"id":"653f7ad5.d55704","type":"api-call-service","z":"6360aac1.79e2e4","name":"Windy = on","server":"c3da42bc.16976","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_on","entityId":"input_boolean.weather_windy","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1070,"y":580,"wires":[[]]},{"id":"4b20e8d4.ca2108","type":"api-call-service","z":"6360aac1.79e2e4","name":"Windy = off","server":"c3da42bc.16976","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_off","entityId":"input_boolean.weather_windy","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1070,"y":640,"wires":[[]]},{"id":"79fe9c7a.167924","type":"api-current-state","z":"6360aac1.79e2e4","name":"Höher als Schwellwert?","server":"c3da42bc.16976","version":1,"outputs":2,"halt_if":"payload","halt_if_type":"msg","halt_if_compare":"lte","override_topic":false,"entity_id":"input_number.weather_high_windy_value","state_type":"num","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":470,"y":620,"wires":[["653f7ad5.d55704"],["4b20e8d4.ca2108"]]},{"id":"af35e127.f0c11","type":"server-state-changed","z":"6360aac1.79e2e4","name":"Aktueller Wert","server":"c3da42bc.16976","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.wupws_windspeed","entityidfiltertype":"exact","outputinitially":true,"state_type":"num","haltifstate":"","halt_if_type":"num","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":130,"y":620,"wires":[["79fe9c7a.167924"]]},{"id":"c3da42bc.16976","type":"server","z":"","name":"Home Assistant"}]
My problem is having the comparison of the values because the middle is always true…
Sure i am doing a newbie fault…?
Thanks for your help in advance!
/ Ralf