Hello guys.
After spending hours and hours trying to see why my automation were not triggering a condition (time) I finally find out that the problem relies on the HA Operating System. The time is wrong. 3 hours behind.
The interesting thing is that all these devices has the correct time zone :
Windows 7 running Oracle Virtual Machine
BIOS
In the configuration yaml I have :
homeassistant:
name: Home
latitude: 99.999999
longitude: -99.999999
Otherwise for some odd reason my home will be Amsterdam.
The time zone seems to be correct “Americas/Vancouver” im in NY
but the time is -3.
How can I fix this ?
Im running my automation with -3 hours for now
Thanks
Because if you live in New York then you’re on the east coast whereas America/Vancouver is the timezone for the west coast. It implies the machine’s timezone was set incorrectly and should be America/NewYork.
I don’t use Oracle Virtual Machine but those screenshots look like the UI for setting the date and time of the host machine’s Windows operating system. Are you certain the VM you created, to host Home Assistant OS, has its clock set to the correct time zone?
I may be wrong, but it’s my understanding that a VM’s clock references the host machine’s clock but can be offset by a desired amount of time.
I did but here is the thing, if I want to location to be right I needed to edit the configuration.yaml file, if I dont then it will read Amsterdam. Right now the UI for the time zone is grayed out.
How do I change the home location from Amsterdam to where I live in NY
It’s now a bit confusing where you changed what. Home Assistant uses the settings in the General section or, if they exist, the ones in configuration.yaml. If you remove the settings (for timezone, latitude, longitude, etc) from configuration.yaml then it will use the ones in the UI. The ones you set in the UI are not written to configuration.yaml (they’re stored elsewhere, in a hidden file).
Ok thats fine I was just letting you know what happened if I enter those line in the configuration yaml file but lets forget about that for now. Im in the UI, how do I change my HOME location.
Go to the terminal and type ‘date’ without the single quotes - it will show you the time and date. To set the time type ‘date +%T -s “hh:mm:ss”’ without the single quotes
It appears HA resets the time based on location. As @123 suggested, move the pin on the map to the desired location, save it and restart home assistant.