Hi
not sure i’m in the right forum but ill try
i am trying to automate a ventilation motor on the roof.
i want it to be auto on.
between 06:00 and 22:00
in this period i want to be able to turn it off for X time and then turn on by auto again.
if i turn it off after 22:00 before 06:00 it stays off untill 0600 then it turns on again.
it kind of works. if i just restart Node-Red it dont work but if i activate the switch first it works within the timeframe. if i turn it off outside the time frame it do not start again att 06:00
this is what i made.
[{"id":"56320497ff1bfdf0","type":"api-call-service","z":"50498449c5f4b729","name":"Takfläkt på","server":"b68ac785.f8d878","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.tasmota"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":510,"y":260,"wires":[[]]},{"id":"7bdda2deea0d331f","type":"time-range-switch","z":"50498449c5f4b729","name":"Timer Ventilation","lat":"62.03407","lon":"14.36577","startTime":"06:00","endTime":"22:00","startOffset":0,"endOffset":0,"x":270,"y":260,"wires":[["56320497ff1bfdf0"],[]]},{"id":"04c1deecec077231","type":"server-state-changed","z":"50498449c5f4b729","name":"fläkt off","server":"b68ac785.f8d878","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.tasmota","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"off","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"10","forType":"num","forUnits":"seconds","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":50,"y":260,"wires":[["7bdda2deea0d331f"],[]]},{"id":"b68ac785.f8d878","type":"server","name":"Home Assistant","addon":true}]
am i way off ?