So my host log is literally filled with the following:
Mar 05 22:20:43 homeassistant systemd-resolved[257]: Clock change detected. Flushing caches.
Mar 05 22:21:46 homeassistant systemd-resolved[257]: Clock change detected. Flushing caches.
Mar 05 22:22:33 homeassistant systemd-resolved[257]: Clock change detected. Flushing caches.
Mar 05 22:23:39 homeassistant systemd-resolved[257]: Clock change detected. Flushing caches.
Mar 05 22:25:02 homeassistant systemd-resolved[257]: Clock change detected. Flushing caches.
Mar 05 22:26:28 homeassistant systemd-resolved[257]: Clock change detected. Flushing caches.
Mar 05 22:27:51 homeassistant systemd-resolved[257]: Clock change detected. Flushing caches.
Mar 05 22:29:15 homeassistant systemd-resolved[257]: Clock change detected. Flushing caches.
Mar 05 22:30:41 homeassistant systemd-resolved[257]: Clock change detected. Flushing caches.
Mar 05 22:32:05 homeassistant systemd-resolved[257]: Clock change detected. Flushing caches.
And whatever is causing this, has the knock on effect of breaking all of my time triggered automations (time, sun elevation etc.).
Any ideas where I can start fixing this? Running HA Core 2023.3.1 & HS OA 9.5 in VirtualBox 6.1 on a MacMini running OSX10.13.6 … this has had me stumped for a couple days now.
As a test example, I created a very basic automation using the Automation UI:
alias: Time Trigger Check
description: ""
trigger:
- platform: time
at: "22:42:20"
condition: []
action:
- service: notify.mobile_app_iphone13
data:
message: Time {{ now().strftime("%H:%M:%S:%s %Y.%m.%d") }}
mode: single
This sends a notification to my phone at a specific time. If I trigger the notification manually, the phone gets the message instantly. If I leave the automation to send the notification, the messages are sent anywhere from 40~90 seconds delayed, and often not sent at all. The timestamp within my message is also completely unrelated to the Trigger time nor the time my phone received the message. In this case, the Trigger time was 22:42:20 and the timestamp in the message was 22:43:05. My phone received the message around 22:44.
Case in point, something has borked HA’s clock and I’m baffled as to what. Cheers!