Node Red Time Settings

I am using Node Red for all of my automations. I am fairly new to HA and I am not a programmer. I am using the light scheduler node to automate my outside lights. I have the coordinates set but for some reason, the time the automation fires, is not correct. Next to the call service node, it tells me the time is 8+ hours ahead of the current time. The automation is scheduled to turn the lights on at 7pm and off at midnight. I have everything set that I can find but the times still are not right. I can’t find anywhere in HA to set a master time, but I did set the time zone in my config but that doesn’t seem to change anything. Is there a setting I am missing that will set the correct time for my time zone so node red displays the correct times for the triggers?

what type of HA install? what is the underlying OS? the system time / time zone are probably not set correctly. node red is independent of HA and uses the OS info, not HA’s. list out the details of your setup and someone give you next steps.

I am running Hassio on a RPI. I believe it is the HassOS, since I did not install any other OS when I set up the RPI for HA.

Can you share you Node Red extract i.e. select the nodes you have configured and export them, copy to clipboard and paste them on the reply. This will help us see what it is you are trying to achieve?

[
    {
        "id": "1eb8a0e.93ebf5f",
        "type": "switch",
        "z": "483bf802.c62bd8",
        "name": "Switch On/ Off",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "turn_on",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "turn_off",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 300,
        "y": 60,
        "wires": [
            [
                "74736eca.f967e"
            ],
            [
                "f5d2e7c2.634a68"
            ]
        ]
    },
    {
        "id": "daabae4c.019d4",
        "type": "light-scheduler",
        "z": "483bf802.c62bd8",
        "settings": "378b217a.9b4b6e",
        "events": "[{\"start\":{\"dow\":1,\"mod\":1140},\"end\":{\"dow\":2,\"mod\":0}},{\"start\":{\"dow\":2,\"mod\":1140},\"end\":{\"dow\":3,\"mod\":0}},{\"start\":{\"dow\":3,\"mod\":1140},\"end\":{\"dow\":4,\"mod\":0}},{\"start\":{\"dow\":4,\"mod\":1140},\"end\":{\"dow\":5,\"mod\":0}},{\"start\":{\"dow\":6,\"mod\":1140},\"end\":{\"dow\":0,\"mod\":0}},{\"start\":{\"dow\":0,\"mod\":1140},\"end\":{\"dow\":1,\"mod\":180}},{\"start\":{\"dow\":5,\"mod\":1140},\"end\":{\"dow\":6,\"mod\":0}}]",
        "topic": "",
        "name": "Front Light Sch",
        "onPayload": "turn_on",
        "onPayloadType": "str",
        "offPayload": "turn_off",
        "offPayloadType": "str",
        "onlyWhenDark": false,
        "scheduleRndMax": 0,
        "sunElevationThreshold": "10",
        "sunShowElevationInStatus": false,
        "outputfreq": "output.statechange.startup",
        "x": 80,
        "y": 60,
        "wires": [
            [
                "1eb8a0e.93ebf5f"
            ]
        ]
    },
    {
        "id": "74736eca.f967e",
        "type": "api-call-service",
        "z": "483bf802.c62bd8",
        "name": "Outside Lights On",
        "server": "59b4da11.8a5ee4",
        "version": 1,
        "debugenabled": true,
        "service_domain": "scene",
        "service": "turn_on",
        "entityId": "scene.turn_on_outside_front",
        "data": "",
        "dataType": "json",
        "mergecontext": "",
        "output_location": "",
        "output_location_type": "none",
        "mustacheAltTags": false,
        "x": 550,
        "y": 40,
        "wires": [
            []
        ]
    },
    {
        "id": "f5d2e7c2.634a68",
        "type": "api-call-service",
        "z": "483bf802.c62bd8",
        "name": "Turn Off Outside",
        "server": "59b4da11.8a5ee4",
        "version": 1,
        "debugenabled": false,
        "service_domain": "scene",
        "service": "turn_on",
        "entityId": "scene.turn_off_outside",
        "data": "",
        "dataType": "json",
        "mergecontext": "",
        "output_location": "",
        "output_location_type": "none",
        "mustacheAltTags": false,
        "x": 540,
        "y": 100,
        "wires": [
            []
        ]
    },
    {
        "id": "378b217a.9b4b6e",
        "type": "light-scheduler-settings",
        "z": "",
        "name": "my setting",
        "latitude": "29.9161422",
        "longitude": "-90.1401473"
    },
    {
        "id": "59b4da11.8a5ee4",
        "type": "server",
        "z": "",
        "name": "Home Assistant",
        "legacy": false,
        "addon": true,
        "rejectUnauthorizedCerts": true,
        "ha_boolean": "y|yes|true|on|home|open",
        "connectionDelay": true,
        "cacheJson": true
    }
]

Douglas, tried your configuration and as you stated there seems to be a 12 hour offset… not sure why as there are no settings to adjust timezones.

I use the ‘bigtimer’ node that can be installed from (top right hamburger -> Manage palette -> Install -> filter nodes (node-red-contrib-bigtimer) it works similar to the ‘Light Scheduler’ but is way more flexible and it works. Hope this helps

[{"id":"af344312.6e133","type":"comment","z":"7c186d9c.140794","name":"Wakeup automation (weekdays)","info":"","x":958.4286117553711,"y":212.38095331192017,"wires":[]},{"id":"e402413f.9dbfe","type":"switch","z":"7c186d9c.140794","name":"On or Off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1327.4762153625488,"y":251.9047408103943,"wires":[["3d2c19b9.643296","771e99df.0db5d8","34ca5a0.d5bada6","d50ea3af.f901"],["364c9cad.a61de4","ae10234b.3337a","85334bd2.307188"]]},{"id":"d06e63c2.fd411","type":"switch","z":"7c186d9c.140794","name":"On or Off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1180.0358505249023,"y":412.3214478492737,"wires":[["771e99df.0db5d8","24d6a827.768358","d50ea3af.f901"],["ae10234b.3337a","7dbb87.bba09478","85334bd2.307188"]]},{"id":"e7f57d17.7ec55","type":"comment","z":"7c186d9c.140794","name":"Sunset lights automation ","info":"","x":940.0358428955078,"y":371.0713858604431,"wires":[]},{"id":"24d6a827.768358","type":"delay","z":"7c186d9c.140794","name":"","pauseType":"delay","timeout":"15","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1364.82763671875,"y":341.07138872146606,"wires":[["3d2c19b9.643296"]]},{"id":"7dbb87.bba09478","type":"delay","z":"7c186d9c.140794","name":"","pauseType":"delay","timeout":"30","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1469.619239807129,"y":429.40467596054077,"wires":[["364c9cad.a61de4"]]},{"id":"c57669c3.f559f8","type":"bigtimer","z":"7c186d9c.140794","outtopic":"","outpayload1":"on","outpayload2":"off","name":"Wakeup automation (weekdays)","comment":"Lights on weekdays","lat":"33.2011989","lon":"-96.9083990","starttime":"375","endtime":"5003","starttime2":0,"endtime2":0,"startoff":"0","endoff":"-5","startoff2":"","endoff2":"","offs":0,"outtext1":"","outtext2":"","timeout":"60","sun":false,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":false,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":false,"jul":false,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"day6":0,"month6":0,"day7":"","month7":"","day8":"","month8":"","day9":"","month9":"","day10":"","month10":"","day11":"","month11":"","day12":"","month12":"","d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"d6":0,"w6":0,"xday1":0,"xmonth1":0,"xday2":0,"xmonth2":0,"xday3":0,"xmonth3":0,"xday4":0,"xmonth4":0,"xday5":0,"xmonth5":0,"xday6":0,"xmonth6":0,"xd1":0,"xw1":0,"xd2":0,"xw2":0,"xd3":0,"xw3":0,"xd4":0,"xw4":0,"xd5":0,"xw5":0,"xd6":0,"xw6":0,"suspend":false,"random":false,"repeat":false,"atstart":false,"odd":false,"even":false,"x":962.2857971191406,"y":263.70236921310425,"wires":[["e402413f.9dbfe"],["d4f6deed.8c308"],[]]},{"id":"9d4226b0.f5ea58","type":"bigtimer","z":"7c186d9c.140794","outtopic":"","outpayload1":"on","outpayload2":"off","name":"Sunset lights automation","comment":"Lights automation","lat":"33.2011989","lon":"-96.9083990","starttime":"5004","endtime":"1350","starttime2":"0","endtime2":"0","startoff":"0","endoff":"0","startoff2":"","endoff2":"","offs":0,"outtext1":"","outtext2":"","timeout":"60","sun":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"day6":0,"month6":0,"d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"d6":0,"w6":0,"xday1":0,"xmonth1":0,"xday2":0,"xmonth2":0,"xday3":0,"xmonth3":0,"xday4":0,"xmonth4":0,"xday5":0,"xmonth5":0,"xday6":0,"xmonth6":0,"xd1":0,"xw1":0,"xd2":0,"xw2":0,"xd3":0,"xw3":0,"xd4":0,"xw4":0,"xd5":0,"xw5":0,"xd6":0,"xw6":0,"suspend":false,"random":false,"repeat":false,"atstart":false,"odd":false,"even":false,"x":940.035831451416,"y":424.8214068412781,"wires":[["d06e63c2.fd411"],[],[]]},{"id":"34ca5a0.d5bada6","type":"link out","z":"7c186d9c.140794","name":"Wake up announcement","links":[],"x":1766.2858257293701,"y":246.66667413711548,"wires":[]},{"id":"3d2c19b9.643296","type":"api-call-service","z":"7c186d9c.140794","name":"Turn porch lights on","server":"8a3231e1.3f0e1","version":1,"service_domain":"switch","service":"turn_on","entityId":"switch.entrance_porch_light, switch.garage_porch_light","data":"","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":1848.7561340332031,"y":353.15474700927734,"wires":[[]]},{"id":"364c9cad.a61de4","type":"api-call-service","z":"7c186d9c.140794","name":"Turn porch lights off","server":"8a3231e1.3f0e1","version":1,"service_domain":"switch","service":"turn_off","entityId":"switch.entrance_porch_light, switch.garage_porch_light","data":"","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":1844.8571319580078,"y":492.3809700012207,"wires":[[]]},{"id":"ae10234b.3337a","type":"api-call-service","z":"7c186d9c.140794","name":"Turn TV room lamp off","server":"8a3231e1.3f0e1","version":1,"service_domain":"switch","service":"turn_off","entityId":"switch.tv_room","data":"","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":1844.8572082519531,"y":619.2856292724609,"wires":[[]]},{"id":"771e99df.0db5d8","type":"api-call-service","z":"7c186d9c.140794","name":"Turn TV room lamp on","server":"8a3231e1.3f0e1","version":1,"service_domain":"switch","service":"turn_on","entityId":"switch.tv_room","data":"","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":1846.4643478393555,"y":422.7380337715149,"wires":[[]]},{"id":"d50ea3af.f901","type":"api-call-service","z":"7c186d9c.140794","name":"Turn Kitchen UC light ON","server":"8a3231e1.3f0e1","version":1,"service_domain":"switch","service":"turn_on","entityId":"switch.kitchen_under_counter","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1859.8572406768799,"y":288.63095808029175,"wires":[[]]},{"id":"85334bd2.307188","type":"api-call-service","z":"7c186d9c.140794","name":"Turn Kitchen UC light OFF","server":"8a3231e1.3f0e1","version":1,"service_domain":"switch","service":"turn_off","entityId":"switch.kitchen_under_counter","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1863.1905822753906,"y":554.0476303100586,"wires":[[]]},{"id":"8a3231e1.3f0e1","type":"server","z":"","name":"Hassio","legacy":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false}]

I have BigTimer also. I’ll give it a shot and see if it works.