# Bigtimer node firing at wrong time

**URL:** <https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787>\
**Category:** General\
**Created:** [9 September 2021 04:15 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787 "2021-09-09T04:15:54Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [9 September 2021 04:15 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/1 "2021-09-09T04:15:54Z")

</div>

I have been using BigTimer node to turn on a floodlight at 4:45AM every morning, and off at sunrise. It's been working fine for many months, maybe more than a year. It's disabled in the node during the summer months and was supposed to resume in September.

However, ever since September 1, it's been turning on the light at midnight.

Here is the flow. Any ideas why bigtimer is turning on the light at midnight??

 ![flow](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/d/7dd7e5fb84bdb96073403f12883d8b3fb5f35e11.jpeg)

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [9 September 2021 06:11 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/2 "2021-09-09T06:11:10Z")

</div>

BTW, you should format your flow using the \</\> in the post editor.

Not sure if the node is pulling current time from the device running Node-Red (probably) or the device running the browser, but perhaps something has changed with the device clock?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 September 2021 09:35 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/3 "2021-09-09T09:35:26Z")

</div>

As suggested, check the system time and timezone on the machine running node-red (not the one running the browser).  
Is the Status message below the bigtimer node correct?  
What is your timezone?  
Does it turn on at exactly midnight?

---

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [9 September 2021 11:51 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/4 "2021-09-09T11:51:02Z")

</div>

> [@Gunner](#):
>
> BTW, you should format your flow using the \</\> in the post editor.

I did. Don't know why it didn't format.

---

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [9 September 2021 12:00 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/5 "2021-09-09T12:00:30Z")

</div>

Gunner & Colin:  
System time is correct. Other bigtimer nodes are working correctly- only this one seems to be off.  
Node-Red is running as a component of Home Assistant on an Intel NUC i3. The OS is Hassio. The bash command 'date' shows the correct date and time.

The status message shows correctly. It is currently 7:43AM, so the timer should be off for 20:53.

![big](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/0/d015215eb26c5697b7f4b0f3e49f050623c7e4af.jpeg)

I did reboot the host this morning, so let's see if it turns on again at midnight.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 September 2021 12:03 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/6 "2021-09-09T12:03:34Z")

</div>

> [@SteveMann](#):
>
> The bash command 'date' shows the correct date and time.

What time is reported if you run that from an exec node in your node-red instance.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [9 September 2021 12:13 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/7 "2021-09-09T12:13:34Z")

</div>

I think HA use a container... I assume the timezone inside the container is also correct ?  
[https://nodered.org/docs/getting-started/docker#setting-timezone](https://nodered.org/docs/getting-started/docker#setting-timezone)

---

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [9 September 2021 12:14 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/8 "2021-09-09T12:14:48Z")

</div>

It shows the correct time.

![exec](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/1/f1ba683190aab2b0c971fb3caf33b046049f3afb.jpeg)

I also use the light scheduler node in another flow, plus a few other instances of bigtimer that all run at the scheduled time.

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [9 September 2021 12:22 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/9 "2021-09-09T12:22:20Z")

</div>

In the bigtimer node you can set offset UTC.  
Be sure this is set at 0 (zero) to use the system time.

---

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [9 September 2021 13:03 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/10 "2021-09-09T13:03:15Z")

</div>

> [@dceejay](#):
>
> I think HA use a container... I assume the timezone inside the container is also correct ?

Yes. Home Assistant is showing the correct date and time in the dashboard.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 September 2021 13:54 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/11 "2021-09-09T13:54:01Z")

</div>

Are you using the latest version of the bigtimer node?

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [10 September 2021 00:40 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/12 "2021-09-10T00:40:06Z")

</div>

Steve

are you using NR from the HACS repository ?

If so that will be a seperate (Docker) container to HASSIO and might be where the issue is

If you have portainer running you should be able to see this and access the console of that container or through Portainer be able to expose the environment variables and confirm the TZ is set correctly

Craig

---

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [10 September 2021 02:40 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/13 "2021-09-10T02:40:47Z")

</div>

> [@craigcurtin](#):
>
> are you using NR from the HACS repository ?

Yes, but, I have other bigtimer nodes that are working just fine. If there were a TZ problem, all of the bigtimer nodes would be affected.

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [10 September 2021 02:53 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/14 "2021-09-10T02:53:09Z")

</div>

> [@SteveMann](#):
>
> Yes, but, I have other bigtimer nodes that are working just fine.

Maybe it isn't an issue with the node after all?? Something else triggering those lights?

Perhaps it is time for some debug nodes throughout your flow to see what, where and when something happens tonight.

---

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [10 September 2021 04:17 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/15 "2021-09-10T04:17:08Z")

</div>

> [@Gunner](#):
>
> Maybe it isn't an issue with the node after all?? Something else triggering those lights?

This flow is the only place that the device appears.

A couple of hours ago the node status said "Off for 7 hours". Just as I would have expected. And at midnight, the light goes on and the status changed to "On for 06hrs, 59min"

It just occurred to me.... Look at the node configuration:

 ![bigtimer](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/e/aec604f9dec1c99eb60953301e02d0114f9ef2ce.jpeg)

Could bigtimer be interpreting the blank On Time 2 as midnight? The Off Time 2 07:00 is a failsafe. I don't recall why it's there, but I will remove it and see if the problem goes away tomorrow night.

---

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [11 September 2021 04:41 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/16 "2021-09-11T04:41:23Z")

</div>

OK, that was the problem.  
On time 2 had an end time but no start time, and bigtimer thought the blank was zero (midnight).

The goal was for the light to turn off at sunrise OR 7:00 AM, whichever occurred first.

The solution was to add the same start time to On time2.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [25 September 2021 04:41 UTC](https://discourse.nodered.org/t/bigtimer-node-firing-at-wrong-time/50787/17 "2021-09-25T04:41:39Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
