Help with a timer/alarm flow

I am trying to create a flow to change lights based on an input_datetime. The input is formatted as “08:00” however the switch is not working when the messages match exactly.

If there is a better way to do this or if it would be better to do this in YAML, I am open.

[
    {
        "id": "674f6be2.6c6494",
        "type": "tab",
        "label": "Flow 2",
        "disabled": false,
        "info": ""
    },
    {
        "id": "cb8c5189.b5aac",
        "type": "poll-state",
        "z": "674f6be2.6c6494",
        "name": "",
        "server": XXXXXXX,
        "version": 1,
        "exposeToHomeAssistant": false,
        "haConfig": [
            {
                "property": "name",
                "value": ""
            },
            {
                "property": "icon",
                "value": ""
            }
        ],
        "updateinterval": "60",
        "updateIntervalUnits": "seconds",
        "outputinitially": false,
        "outputonchanged": false,
        "entity_id": "input_datetime.alarm_time",
        "state_type": "str",
        "halt_if": "",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "outputs": 1,
        "x": 240,
        "y": 240,
        "wires": [
            [
                "6c35d030.0433"
            ]
        ]
    },
    {
        "id": "b2073181.b0f6a",
        "type": "switch",
        "z": "674f6be2.6c6494",
        "name": "",
        "property": "time",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "alarm",
                "vt": "msg"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 710,
        "y": 240,
        "wires": [
            []
        ]
    },
    {
        "id": "921e7a2a.b2b478",
        "type": "moment",
        "z": "674f6be2.6c6494",
        "name": "",
        "topic": "",
        "input": "",
        "inputType": "msg",
        "inTz": "America/Chicago",
        "adjAmount": 0,
        "adjType": "days",
        "adjDir": "add",
        "format": "HH:mm",
        "locale": "C",
        "output": "time",
        "outputType": "msg",
        "outTz": "America/Chicago",
        "x": 460,
        "y": 160,
        "wires": [
            [
                "b2073181.b0f6a"
            ]
        ]
    },
    {
        "id": "e993a393.2c5c8",
        "type": "inject",
        "z": "674f6be2.6c6494",
        "name": "",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "60",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "x": 190,
        "y": 160,
        "wires": [
            [
                "921e7a2a.b2b478"
            ]
        ]
    },
    {
        "id": "6c35d030.0433",
        "type": "moment",
        "z": "674f6be2.6c6494",
        "name": "time -30",
        "topic": "",
        "input": "",
        "inputType": "msg",
        "inTz": "America/Chicago",
        "adjAmount": ".5",
        "adjType": "hours",
        "adjDir": "subtract",
        "format": "HH:mm",
        "locale": "C",
        "output": "alarm",
        "outputType": "msg",
        "outTz": "America/Chicago",
        "x": 460,
        "y": 240,
        "wires": [
            [
                "b2073181.b0f6a"
            ]
        ]
    },
    {
        "id": "3185f61a.da521a",
        "type": "server",
        "z": "",
        "name": "Home Assistant",
        "legacy": false,
        "addon": true,
        "rejectUnauthorizedCerts": true,
        "ha_boolean": "y|yes|true|on|home|open",
        "connectionDelay": true,
        "cacheJson": true
    }
]

Im using this to do the same:

[{"id":"4c2301de.7c484","type":"inject","z":"1de400c0.5ce76f","name":"","repeat":"60","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":90,"y":120,"wires":[["c2b4d347.fde2","49bd25e3.cd60ec"]]},{"id":"cb3ff133.0f556","type":"api-current-state","z":"1de400c0.5ce76f","name":"Get Alarm Time","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":true,"entity_id":"input_datetime.alarm","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":460,"y":120,"wires":[["ed1570d4.2671d"]]},{"id":"49bd25e3.cd60ec","type":"api-current-state","z":"1de400c0.5ce76f","name":"Wecker an?","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":true,"entity_id":"input_boolean.alarm","state_type":"str","state_location":"","override_payload":"none","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":290,"y":120,"wires":[["cb3ff133.0f556"],[]]},{"id":"ed1570d4.2671d","type":"moment","z":"1de400c0.5ce76f","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":640,"y":120,"wires":[["5fd4bf94.3d203"]]},{"id":"c2b4d347.fde2","type":"moment","z":"1de400c0.5ce76f","name":"Current Time","topic":"","input":"payload","inputType":"msg","inTz":"Europe/Berlin","adjAmount":"0","adjType":"minutes","adjDir":"subtract","format":"YYYY-MM-DD HH:mm","locale":"C","output":"payload","outputType":"msg","outTz":"Europe/Berlin","x":630,"y":180,"wires":[["5fd4bf94.3d203"]]},{"id":"5fd4bf94.3d203","type":"join","z":"1de400c0.5ce76f","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":810,"y":180,"wires":[["3baa06b3.7b18fa"]]},{"id":"3baa06b3.7b18fa","type":"function","z":"1de400c0.5ce76f","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":960,"y":180,"wires":[["69f8941b.a2457c"]]},{"id":"69f8941b.a2457c","type":"switch","z":"1de400c0.5ce76f","name":"Is it Time?","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"True","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":1120,"y":180,"wires":[["1123ea0c.e5c056"]]}]

Thank you, I’ll give it a try.