Hi!
What might be wrong with this flow? I cannot get it working…
Alarm time from phone works ok.
[{"id":"d5ba75a2.120728","type":"api-call-service","z":"c13bbcab.90a03","name":"Nelli Led \"on\" 1%","server":"a2ec974.6e15268","version":1,"debugenabled":true,"service_domain":"light","service":"turn_on","entityId":"light.nelli_led3_light","data":"{\"brightness_pct\":1}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1150,"y":300,"wires":[[]]},{"id":"e8c56c70.3d816","type":"delay","z":"c13bbcab.90a03","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":980,"y":420,"wires":[["2f8bd8c2.9424c8"]]},{"id":"2f8bd8c2.9424c8","type":"api-call-service","z":"c13bbcab.90a03","name":"Kirkkauden kasvatus 100% 10 min","server":"a2ec974.6e15268","version":1,"debugenabled":true,"service_domain":"light","service":"turn_on","entityId":"light.keittio_lamppu_light","data":"{\"brightness_pct\":100,\"transition\":60}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1220,"y":420,"wires":[[]]},{"id":"5fd4bf94.3d203","type":"join","z":"c13bbcab.90a03","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":690,"y":340,"wires":[["3baa06b3.7b18fa"]]},{"id":"3baa06b3.7b18fa","type":"function","z":"c13bbcab.90a03","name":"Compare Times","func":"newmsg = {};\nif (msg.payload[0] == msg.payload[1]) {\n newmsg.payload = \"True\";\n} else {\n newmsg.payload = \"False\";\n}\n\nreturn newmsg;","outputs":1,"noerr":0,"x":820,"y":500,"wires":[["69f8941b.a2457c"]]},{"id":"69f8941b.a2457c","type":"switch","z":"c13bbcab.90a03","name":"Is it Time?","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"True","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":890,"y":340,"wires":[["d5ba75a2.120728","e8c56c70.3d816"]]},{"id":"ed1570d4.2671d","type":"moment","z":"c13bbcab.90a03","name":"Alarm - 10min","topic":"","input":"payload","inputType":"msg","inTz":"Europe/Berlin","adjAmount":"10","adjType":"minutes","adjDir":"subtract","format":"YYYY-MM-DD HH:mm","locale":"C","output":"payload","outputType":"msg","outTz":"Europe/Berlin","x":560,"y":460,"wires":[["5fd4bf94.3d203"]]},{"id":"c2b4d347.fde2","type":"moment","z":"c13bbcab.90a03","name":"Current Time","topic":"","input":"payload","inputType":"msg","inTz":"Europe/Helsinki","adjAmount":"0","adjType":"minutes","adjDir":"subtract","format":"YYYY-MM-DD HH:mm","locale":"C","output":"payload","outputType":"msg","outTz":"Europe/Helsinki","x":610,"y":500,"wires":[["5fd4bf94.3d203"]]},{"id":"6253e27d.b225ec","type":"trigger-state","z":"c13bbcab.90a03","name":"","server":"a2ec974.6e15268","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"input_datetime.next_alarm_nelli","entityidfiltertype":"exact","debugenabled":true,"constraints":[],"outputs":2,"customoutputs":[],"outputinitially":true,"state_type":"str","x":200,"y":360,"wires":[["f1dc6940.7788c8"],[]]},{"id":"f1dc6940.7788c8","type":"time-range-switch","z":"c13bbcab.90a03","name":"","lat":"","lon":"","startTime":"07:00","endTime":"09:30","startOffset":0,"endOffset":0,"x":450,"y":360,"wires":[["90e3153c.d17408"],[]]},{"id":"90e3153c.d17408","type":"weekday","z":"c13bbcab.90a03","name":"","sun":false,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":false,"x":350,"y":460,"wires":[["ed1570d4.2671d"],[]]},{"id":"a2ec974.6e15268","type":"server","name":"Home Assistant","addon":true}]