Hi there,
I’m trying to switch on/off my node-Red Flows. I have some Flows, that are sceduled trough a “Light Scheduler” Node and only triggered when a Calender calls for an event. So the Light Scheduler triggers the flow, which then checks if it is a day of School oder not and then starts a morning routine.
I already have the HACS HA-Node-Red Addon installed but on the Flow, there is no Node with the option to “expose to Home Assistant” like on the trigger nodes. I tried with an input_bolean, but this didn`t seem to work. Maybe you can put me on the right path.
The Flow ist thisone:
[{"id":"d44619de19f31676","type":"light-scheduler","z":"5cc487a8a59c4ebe","settings":"b532f972.44dee8","events":"[{\"start\":{\"dow\":1,\"mod\":360},\"end\":{\"dow\":1,\"mod\":420}},{\"start\":{\"dow\":2,\"mod\":360},\"end\":{\"dow\":2,\"mod\":420}},{\"start\":{\"dow\":3,\"mod\":360},\"end\":{\"dow\":3,\"mod\":420}},{\"start\":{\"dow\":4,\"mod\":360},\"end\":{\"dow\":4,\"mod\":420}},{\"start\":{\"dow\":5,\"mod\":360},\"end\":{\"dow\":5,\"mod\":420}}]","topic":"","name":"Aufwachen","onPayload":"ON","onPayloadType":"str","offPayload":"","offPayloadType":"str","onlyWhenDark":true,"scheduleRndMax":0,"sunElevationThreshold":6,"sunShowElevationInStatus":false,"outputfreq":"output.statechange","x":150,"y":400,"wires":[["779ff899422da8cf"]]},{"id":"f425ca77ba63eec4","type":"api-current-state","z":"5cc487a8a59c4ebe","name":"Schultag","server":"3aadbb29.9ac584","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"calendar.ferien_baden_wurttemberg","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":480,"y":400,"wires":[[],["f6f502ae3918fa71"]]},{"id":"f6f502ae3918fa71","type":"api-call-service","z":"5cc487a8a59c4ebe","name":"","server":"3aadbb29.9ac584","version":5,"debugenabled":false,"domain":"scene","service":"turn_on","areaId":[],"deviceId":[],"entityId":["scene.sonnenaufgang"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":640,"y":400,"wires":[["cee2b9b1cc70c8ea","a7cbc8fa8ff3cf3b"]]},{"id":"cee2b9b1cc70c8ea","type":"delay","z":"5cc487a8a59c4ebe","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":850,"y":440,"wires":[["2a8f85df3dbf8df8"]]},{"id":"2a8f85df3dbf8df8","type":"api-call-service","z":"5cc487a8a59c4ebe","name":"","server":"3aadbb29.9ac584","version":5,"debugenabled":false,"domain":"cover","service":"open_cover","areaId":[],"deviceId":[],"entityId":["cover.shellyswitch25_c45bbe6a65e4"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1050,"y":440,"wires":[[]]},{"id":"779ff899422da8cf","type":"switch","z":"5cc487a8a59c4ebe","name":"Switch","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"ON","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":290,"y":400,"wires":[["fa2dc3ea69512d7e"]]},{"id":"a7cbc8fa8ff3cf3b","type":"delay","z":"5cc487a8a59c4ebe","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"hours","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":840,"y":380,"wires":[["e6b1e262b30fad36"]]},{"id":"e6b1e262b30fad36","type":"api-call-service","z":"5cc487a8a59c4ebe","name":"","server":"3aadbb29.9ac584","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1040,"y":360,"wires":[[]]},{"id":"fa2dc3ea69512d7e","type":"api-current-state","z":"5cc487a8a59c4ebe","name":"","server":"3aadbb29.9ac584","version":3,"outputs":2,"halt_if":"ON","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.aufwachen","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":560,"y":140,"wires":[["f425ca77ba63eec4"],[]]},{"id":"9a109b860358deeb","type":"inject","z":"5cc487a8a59c4ebe","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":100,"y":320,"wires":[["fa2dc3ea69512d7e"]]},{"id":"b532f972.44dee8","type":"light-scheduler-settings","name":"my settings","latitude":"49.004902344895875","longitude":"8.349716399602572"},{"id":"3aadbb29.9ac584","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30"}]