As Title says, my automation that uses a input_datetime.XXXX triggers late every day.
My Home assistant is hosted in a virtual machine on Truenas, i have checked the time of my home assistant and the time on my TrueNas, Both are correct to my locale.
Time is set to trigger at 07:00:00 everyday, Traces show;
Executed: June 17, 2026 at 07:50:19
Executed: June 16, 2026 at 07:27:48
Executed: June 15, 2026 at 07:53:16.
Logs around 07:00 show nothing significant.
Automation is:
alias: Zero Battery Charge
description: ""
triggers:
- trigger: time
at: input_datetime.zero_battery_charge
id: scheduled
- trigger: state
entity_id:
- input_button.zero_battery_charge
id: manual
conditions:
- condition: template
value_template: |
{{
(states('number.sunsynk_inverter_1_max_charge_current') | float != 1)
or
(states('number.sunsynk_inverter_2_max_charge_current') | float != 1)
}}
actions:
- choose:
- conditions:
- condition: trigger
id: scheduled
sequence:
- action: notify.mobile_app_iphonegogo
data:
title: Zero Batt Scheduler
message: >
Triggered at {{ now() }} Helper={{
states('input_datetime.zero_batt_chg') }}
- conditions:
- condition: trigger
id: manual
sequence:
- action: notify.mobile_app_iphonegogo
data:
title: Zero Batt Manual
message: |
Triggered manually at {{ now() }}
- action: number.set_value
target:
entity_id: number.sunsynk_inverter_1_max_charge_current
data:
value: 1
- delay:
seconds: 5
- action: number.set_value
target:
entity_id: number.sunsynk_inverter_2_max_charge_current
data:
value: 1
- delay:
seconds: 20
- choose:
- conditions:
- condition: template
value_template: |
{{
states('number.sunsynk_inverter_1_max_charge_current') | float == 1
and
states('number.sunsynk_inverter_2_max_charge_current') | float == 1
}}
sequence:
- action: notify.mobile_app_iphonegogo
data:
title: Zero Battery Charge 🔋
message: >
Charge current set to {{
states('number.sunsynk_inverter_1_max_charge_current') }} Amp
default:
- action: notify.mobile_app_iphonegogo
data:
title: ❌ Zero Battery Charge ERROR ❌
message: >
FAILED: values not set correctly. Current: Sunsynk 1 = {{
states('number.sunsynk_inverter_1_max_charge_current') }}, Sunsynk 2
= {{ states('number.sunsynk_inverter_2_max_charge_current') }}
mode: single
I have also set up a minute trigger that is firing fine
Logger: homeassistant.components.system_log.external
Source: components/system_log/__init__.py:329
Integration: System Log (documentation, issues)
First occurred: June 15, 2026 at 17:00:00 (521 occurrences)
Last logged: 12:00:12
Scheduler drift: 12s at 2026-06-17 11:40:12.316315+01:00
Scheduler drift: 11s at 2026-06-17 11:45:11.638684+01:00
Scheduler drift: 13s at 2026-06-17 11:50:13.737659+01:00
Scheduler drift: 14s at 2026-06-17 11:55:14.370376+01:00
Scheduler drift: 12s at 2026-06-17 12:00:12.426572+01:00
Any pointers would be appreciated.