home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.13k stars 30.18k forks source link

Unit System not retained across restarts #120294

Open ZhuDaHai opened 3 months ago

ZhuDaHai commented 3 months ago

The problem

I previously reported this in the operating-system Issue page #3442 and was told this was probably a Core issue. I find similar issues from 2022, closed and resolved in the Core, but it looks like its back again as I'm using Core 2024.6.4 So, here is the new Issue Report:

The System->General setting page defaults to Fahrenheit for my location. I prefer Celsius and so change it to that: image When I click on Update the cards in the overview page update to Celsius as expected. When I restart/reboot HA, it reverts back to Fahrenheit. I tried adding this to configuration.yaml: image Still reverted back to Fahrenheit after a reboot/restart of HA. All the temperature sensors are set to Celsius - example: image And I even tried setting my Country to 'Canada', which uses Metric as the default. Still reverts back to Fahrenheit after a reboot/restart

What version of Home Assistant Core has the issue?

2024.6.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

none. On System-> General

Link to integration documentation on our website

No Integration, System -> General settings page

Diagnostics information

Not an integration

Example YAML snippet

See Description of Problem above

Anything in the logs that might be useful for us?

2024-06-23 19:20:37.370 INFO (MainThread) [supervisor.resolution.check] System checks complete
2024-06-23 19:20:37.370 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2024-06-23 19:20:37.571 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-06-23 19:20:37.572 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2024-06-23 19:20:37.572 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2024-06-23 19:21:27.144 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
2024-06-23 19:21:56.326 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-06-23 19:41:43.730 INFO (MainThread) [supervisor.host.info] Updating local host information
2024-06-23 19:41:44.465 INFO (MainThread) [supervisor.host.services] Updating service information
2024-06-23 19:41:44.479 INFO (MainThread) [supervisor.host.network] Updating local network information
2024-06-23 19:41:44.750 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
2024-06-23 19:41:44.761 INFO (MainThread) [supervisor.host.manager] Host information reload completed
2024-06-23 19:51:56.625 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-06-23 20:20:37.573 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
2024-06-23 20:20:37.574 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
2024-06-23 20:20:37.664 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
2024-06-23 20:20:37.665 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
2024-06-23 20:20:37.666 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
2024-06-23 20:20:37.667 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
2024-06-23 20:20:37.668 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
2024-06-23 20:20:37.670 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disabled_data_disk/system
2024-06-23 20:20:37.671 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
2024-06-23 20:20:37.672 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
2024-06-23 20:20:37.673 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
2024-06-23 20:20:37.690 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
2024-06-23 20:20:37.690 INFO (MainThread) [supervisor.resolution.check] System checks complete
2024-06-23 20:20:37.690 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2024-06-23 20:20:37.871 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-06-23 20:20:37.872 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2024-06-23 20:20:37.872 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2024-06-23 20:21:45.934 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
2024-06-23 20:21:45.942 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
2024-06-23 20:21:45.947 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
2024-06-23 20:21:45.955 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/zigbee2mqtt/hassio-zigbee2mqtt repository
2024-06-23 20:21:47.373 INFO (MainThread) [supervisor.store] Loading add-ons from store: 80 all - 0 new - 0 remove
2024-06-23 20:21:47.373 INFO (MainThread) [supervisor.store] Loading add-ons from store: 80 all - 0 new - 0 remove
2024-06-23 20:21:56.929 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-06-23 20:48:51.800 INFO (SyncWorker_3) [supervisor.docker.manager] Restarting homeassistant
2024-06-23 20:49:00.157 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
2024-06-23 20:49:05.693 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2024-06-23 20:49:05.984 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-06-23 20:49:10.185 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to NOT_RUNNING
2024-06-23 20:49:20.228 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to RUNNING
2024-06-23 20:49:20.228 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
2024-06-23 20:51:57.277 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-06-23 21:20:37.879 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
2024-06-23 21:20:37.880 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
2024-06-23 21:20:37.967 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
2024-06-23 21:20:37.968 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
2024-06-23 21:20:37.968 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
2024-06-23 21:20:37.969 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
2024-06-23 21:20:37.970 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
2024-06-23 21:20:37.972 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disabled_data_disk/system
2024-06-23 21:20:37.972 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
2024-06-23 21:20:37.973 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
2024-06-23 21:20:37.973 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
2024-06-23 21:20:37.990 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
2024-06-23 21:20:37.991 INFO (MainThread) [supervisor.resolution.check] System checks complete
2024-06-23 21:20:37.991 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2024-06-23 21:20:38.174 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-06-23 21:20:38.175 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2024-06-23 21:20:38.175 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2024-06-23 21:21:27.283 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
2024-06-23 21:21:57.668 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-06-23 21:24:58.038 INFO (MainThread) [supervisor.backups.manager] Found 2 backup files
2024-06-23 21:24:58.313 INFO (MainThread) [supervisor.backups.manager] Found 2 backup files
2024-06-23 21:25:10.838 INFO (MainThread) [supervisor.backups.manager] Backup 1c124985 starting stage addon_repositories
2024-06-23 21:25:10.839 INFO (MainThread) [supervisor.backups.manager] Backup 1c124985 starting stage docker_config
2024-06-23 21:25:10.840 INFO (MainThread) [supervisor.backups.manager] Creating new full backup with slug 1c124985
2024-06-23 21:25:10.844 INFO (MainThread) [supervisor.backups.manager] Backup 1c124985 starting stage addons
2024-06-23 21:25:10.884 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on core_configurator
2024-06-23 21:25:10.897 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon core_configurator
2024-06-23 21:25:11.300 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on core_mariadb
2024-06-23 21:25:13.329 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon core_mariadb
2024-06-23 21:25:13.366 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on core_mosquitto
2024-06-23 21:25:13.382 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon core_mosquitto
2024-06-23 21:25:13.414 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on 45df7312_zigbee2mqtt
2024-06-23 21:25:13.425 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon 45df7312_zigbee2mqtt
2024-06-23 21:25:13.427 INFO (MainThread) [supervisor.backups.manager] Backup 1c124985 starting stage home_assistant
2024-06-23 21:25:13.457 INFO (MainThread) [supervisor.homeassistant.module] Backing up Home Assistant Core config folder
2024-06-23 21:25:13.627 INFO (MainThread) [supervisor.homeassistant.module] Backup Home Assistant Core config folder done
2024-06-23 21:25:13.632 INFO (MainThread) [supervisor.backups.manager] Backup 1c124985 starting stage folders
2024-06-23 21:25:13.635 INFO (SyncWorker_2) [supervisor.backups.backup] Backing up folder share
2024-06-23 21:25:13.645 INFO (SyncWorker_2) [supervisor.backups.backup] Backup folder share done
2024-06-23 21:25:13.648 INFO (SyncWorker_1) [supervisor.backups.backup] Backing up folder addons/local
2024-06-23 21:25:13.653 INFO (SyncWorker_1) [supervisor.backups.backup] Backup folder addons/local done
2024-06-23 21:25:13.659 INFO (SyncWorker_3) [supervisor.backups.backup] Backing up folder ssl
2024-06-23 21:25:13.665 INFO (SyncWorker_3) [supervisor.backups.backup] Backup folder ssl done
2024-06-23 21:25:13.669 INFO (SyncWorker_6) [supervisor.backups.backup] Backing up folder media
2024-06-23 21:25:13.676 INFO (SyncWorker_6) [supervisor.backups.backup] Backup folder media done
2024-06-23 21:25:13.678 INFO (MainThread) [supervisor.backups.manager] Backup 1c124985 starting stage finishing_file
2024-06-23 21:25:13.685 INFO (MainThread) [supervisor.backups.manager] Creating full backup with slug 1c124985 completed
2024-06-23 21:25:13.914 INFO (MainThread) [supervisor.backups.manager] Found 3 backup files
2024-06-23 21:25:22.200 INFO (MainThread) [supervisor.api.backups] Downloading backup 1c124985
2024-06-23 21:25:26.578 INFO (MainThread) [supervisor.api.backups] Downloading backup 1c124985
2024-06-23 21:48:24.762 INFO (MainThread) [supervisor.host.info] Updating local host information
2024-06-23 21:48:25.483 INFO (MainThread) [supervisor.host.services] Updating service information
2024-06-23 21:48:25.496 INFO (MainThread) [supervisor.host.network] Updating local network information
2024-06-23 21:48:25.889 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
2024-06-23 21:48:25.900 INFO (MainThread) [supervisor.host.manager] Host information reload completed
2024-06-23 21:51:57.997 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token

### Anything in the Host logs that might be useful for us?

```txt
2024-06-23 22:35:03.134 homeassistant kernel: audit: type=1334 audit(1719182103.129:1850): prog-id=436 op=LOAD
2024-06-23 22:35:03.157 homeassistant systemd[1]: Starting Time & Date Service...
2024-06-23 22:35:03.420 homeassistant systemd[1]: Started Time & Date Service.
2024-06-23 22:35:33.160 homeassistant systemd[1]: systemd-hostnamed.service: Deactivated successfully.
2024-06-23 22:35:33.278 homeassistant kernel: audit: type=1334 audit(1719182133.273:1851): prog-id=433 op=UNLOAD
2024-06-23 22:35:33.279 homeassistant kernel: audit: type=1334 audit(1719182133.273:1852): prog-id=432 op=UNLOAD
2024-06-23 22:35:33.279 homeassistant kernel: audit: type=1334 audit(1719182133.273:1853): prog-id=431 op=UNLOAD
2024-06-23 22:35:33.464 homeassistant systemd[1]: systemd-timedated.service: Deactivated successfully.
2024-06-23 22:35:33.494 homeassistant kernel: audit: type=1334 audit(1719182133.489:1854): prog-id=436 op=UNLOAD
2024-06-23 22:35:33.495 homeassistant kernel: audit: type=1334 audit(1719182133.489:1855): prog-id=435 op=UNLOAD
2024-06-23 22:35:33.495 homeassistant kernel: audit: type=1334 audit(1719182133.489:1856): prog-id=434 op=UNLOAD
2024-06-23 22:39:25.435 homeassistant NetworkManager[489]: <info>  [1719182365.4352] dhcp6 (end0): state changed new lease, address=2605:a601:ac22:8e00::2a7
2024-06-23 22:39:25.480 homeassistant systemd[1]: Starting Network Manager Script Dispatcher Service...
2024-06-23 22:39:25.502 homeassistant systemd[1]: Started Network Manager Script Dispatcher Service.
2024-06-23 22:39:35.526 homeassistant systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
2024-06-23 22:43:06.843 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-d5fbabe1ab3813b3b3c2458e88a67c7ef4f8e510e5694e7ea154fe424eb012a9-runc.6N1q7C.mount: Deactivated successfully.
2024-06-23 23:10:45.601 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-d5fbabe1ab3813b3b3c2458e88a67c7ef4f8e510e5694e7ea154fe424eb012a9-runc.aJpCv9.mount: Deactivated successfully.
2024-06-23 23:28:51.382 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-d5fbabe1ab3813b3b3c2458e88a67c7ef4f8e510e5694e7ea154fe424eb012a9-runc.Jpph9L.mount: Deactivated successfully.
2024-06-23 23:34:23.146 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-d5fbabe1ab3813b3b3c2458e88a67c7ef4f8e510e5694e7ea154fe424eb012a9-runc.r9AwUq.mount: Deactivated successfully.
2024-06-24 00:31:45.800 homeassistant NetworkManager[489]: <info>  [1719189105.7992] dhcp4 (end0): state changed new lease, address=192.168.2.246
2024-06-24 00:31:45.845 homeassistant systemd[1]: Starting Network Manager Script Dispatcher Service...
2024-06-24 00:31:45.866 homeassistant systemd[1]: Started Network Manager Script Dispatcher Service.
2024-06-24 00:31:45.890 homeassistant systemd[1]: Stopping Network Time Synchronization...
2024-06-24 00:31:45.893 homeassistant systemd[1]: systemd-timesyncd.service: Deactivated successfully.
2024-06-24 00:31:45.893 homeassistant systemd[1]: Stopped Network Time Synchronization.
2024-06-24 00:31:45.906 homeassistant kernel: audit: type=1334 audit(1719189105.902:1857): prog-id=437 op=LOAD
2024-06-24 00:31:45.928 homeassistant systemd[1]: Starting Network Time Synchronization...
2024-06-24 00:31:45.931 homeassistant kernel: audit: type=1334 audit(1719189105.926:1858): prog-id=424 op=UNLOAD
2024-06-24 00:31:46.191 homeassistant systemd[1]: Started Network Time Synchronization.
2024-06-24 00:31:46.215 homeassistant systemd-timesyncd[122935]: Contacted time server 216.239.35.0:123 (216.239.35.0).
2024-06-24 00:31:46.216 homeassistant systemd-timesyncd[122935]: Initial clock synchronization to Mon 2024-06-24 00:31:46.215797 UTC.
2024-06-24 00:31:56.205 homeassistant systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
2024-06-24 00:41:43.754 homeassistant kernel: audit: type=1334 audit(1719189703.748:1859): prog-id=438 op=LOAD
2024-06-24 00:41:43.755 homeassistant kernel: audit: type=1334 audit(1719189703.748:1860): prog-id=439 op=LOAD
2024-06-24 00:41:43.755 homeassistant kernel: audit: type=1334 audit(1719189703.748:1861): prog-id=440 op=LOAD
2024-06-24 00:41:43.769 homeassistant systemd[1]: Starting Hostname Service...
2024-06-24 00:41:44.065 homeassistant systemd[1]: Started Hostname Service.
2024-06-24 00:41:44.082 homeassistant kernel: audit: type=1334 audit(1719189704.076:1862): prog-id=441 op=LOAD
2024-06-24 00:41:44.083 homeassistant kernel: audit: type=1334 audit(1719189704.076:1863): prog-id=442 op=LOAD
2024-06-24 00:41:44.083 homeassistant kernel: audit: type=1334 audit(1719189704.076:1864): prog-id=443 op=LOAD
2024-06-24 00:41:44.101 homeassistant systemd[1]: Starting Time & Date Service...
2024-06-24 00:41:44.367 homeassistant systemd[1]: Started Time & Date Service.
2024-06-24 00:42:14.105 homeassistant systemd[1]: systemd-hostnamed.service: Deactivated successfully.
2024-06-24 00:42:14.214 homeassistant kernel: audit: type=1334 audit(1719189734.207:1865): prog-id=440 op=UNLOAD
2024-06-24 00:42:14.215 homeassistant kernel: audit: type=1334 audit(1719189734.207:1866): prog-id=439 op=UNLOAD
2024-06-24 00:42:14.215 homeassistant kernel: audit: type=1334 audit(1719189734.207:1867): prog-id=438 op=UNLOAD
2024-06-24 00:42:14.412 homeassistant systemd[1]: systemd-timedated.service: Deactivated successfully.
2024-06-24 00:42:14.459 homeassistant kernel: audit: type=1334 audit(1719189734.451:1868): prog-id=443 op=UNLOAD
2024-06-24 00:42:14.459 homeassistant kernel: audit: type=1334 audit(1719189734.451:1869): prog-id=442 op=UNLOAD
2024-06-24 00:42:14.459 homeassistant kernel: audit: type=1334 audit(1719189734.451:1870): prog-id=441 op=UNLOAD
2024-06-24 00:52:00.230 homeassistant systemd[1]: Starting Discard unused blocks on filesystems from /etc/fstab...
2024-06-24 00:52:04.298 homeassistant fstrim[123713]: /tmp: 14.9 MiB (15642624 bytes) trimmed on /dev/zram2
2024-06-24 00:52:04.298 homeassistant fstrim[123713]: /mnt/data: 53 GiB (56945127424 bytes) trimmed on /dev/mmcblk0p8
2024-06-24 00:52:04.298 homeassistant fstrim[123713]: /mnt/overlay: 80.5 MiB (84401152 bytes) trimmed on /dev/mmcblk0p7
2024-06-24 00:52:04.298 homeassistant fstrim[123713]: /mnt/boot: 24.2 MiB (25358336 bytes) trimmed on /dev/mmcblk0p1
2024-06-24 00:52:04.302 homeassistant systemd[1]: fstrim.service: Deactivated successfully.
2024-06-24 00:52:04.303 homeassistant systemd[1]: Finished Discard unused blocks on filesystems from /etc/fstab.
2024-06-24 01:08:22.915 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-d5fbabe1ab3813b3b3c2458e88a67c7ef4f8e510e5694e7ea154fe424eb012a9-runc.nV856L.mount: Deactivated successfully.
2024-06-24 01:21:27.052 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-d5fbabe1ab3813b3b3c2458e88a67c7ef4f8e510e5694e7ea154fe424eb012a9-runc.FPax2X.mount: Deactivated successfully.
2024-06-24 01:24:58.170 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-d5fbabe1ab3813b3b3c2458e88a67c7ef4f8e510e5694e7ea154fe424eb012a9-runc.Rlzbr4.mount: Deactivated successfully.
2024-06-24 01:32:00.444 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-d5fbabe1ab3813b3b3c2458e88a67c7ef4f8e510e5694e7ea154fe424eb012a9-runc.Bj5EHo.mount: Deactivated successfully.
2024-06-24 01:33:13.046 homeassistant kernel: audit: type=1334 audit(1719192793.039:1871): prog-id=444 op=LOAD
2024-06-24 01:33:13.077 homeassistant systemd[1]: Starting Remove Bluetooth cache entries older than one week...
2024-06-24 01:33:13.290 homeassistant systemd[1]: haos-bt-cache.service: Deactivated successfully.
2024-06-24 01:33:13.291 homeassistant systemd[1]: Finished Remove Bluetooth cache entries older than one week.
2024-06-24 01:33:13.394 homeassistant kernel: audit: type=1334 audit(1719192793.387:1872): prog-id=444 op=UNLOAD
2024-06-24 01:37:32.253 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-d5fbabe1ab3813b3b3c2458e88a67c7ef4f8e510e5694e7ea154fe424eb012a9-runc.ptOsIt.mount: Deactivated successfully.
2024-06-24 01:48:59.749 homeassistant systemd[1]: docker-a161a0067f32a473c1b6c36057390f4e5afae0bf9a69406aa4f6bd068ef3d9b2.scope: Deactivated successfully.
2024-06-24 01:48:59.750 homeassistant systemd[1]: docker-a161a0067f32a473c1b6c36057390f4e5afae0bf9a69406aa4f6bd068ef3d9b2.scope: Consumed 54min 10.284s CPU time.
2024-06-24 01:48:59.778 homeassistant kernel: audit: type=1334 audit(1719193739.770:1873): prog-id=346 op=UNLOAD
2024-06-24 01:48:59.784 homeassistant dockerd[584]: time="2024-06-24T01:48:59.784442891Z" level=info msg="ignoring event" container=a161a0067f32a473c1b6c36057390f4e5afae0bf9a69406aa4f6bd068ef3d9b2 module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
2024-06-24 01:49:00.072 homeassistant systemd[1]: Started libcontainer container a161a0067f32a473c1b6c36057390f4e5afae0bf9a69406aa4f6bd068ef3d9b2.
2024-06-24 01:49:00.103 homeassistant kernel: audit: type=1334 audit(1719193740.094:1874): prog-id=445 op=LOAD
2024-06-24 01:49:00.103 homeassistant kernel: audit: type=1300 audit(1719193740.094:1874): arch=c00000b7 syscall=280 success=yes exit=15 a0=5 a1=400011d840 a2=78 a3=0 items=0 ppid=126315 pid=126324 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="runc" exe="/usr/bin/runc" subj=unconfined key=(null)
2024-06-24 01:49:00.103 homeassistant kernel: audit: type=1327 audit(1719193740.094:1874): proctitle=72756E63002D2D726F6F74002F7661722F72756E2F646F636B65722F72756E74696D652D72756E632F6D6F6279002D2D6C6F67002F72756E2F636F6E7461696E6572642F696F2E636F6E7461696E6572642E72756E74696D652E76322E7461736B2F6D6F62792F61313631613030363766333261343733633162366333363035
2024-06-24 01:49:00.103 homeassistant kernel: audit: type=1334 audit(1719193740.094:1875): prog-id=446 op=LOAD
2024-06-24 01:49:00.103 homeassistant kernel: audit: type=1300 audit(1719193740.094:1875): arch=c00000b7 syscall=280 success=yes exit=17 a0=5 a1=400011d5d0 a2=78 a3=0 items=0 ppid=126315 pid=126324 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="runc" exe="/usr/bin/runc" subj=unconfined key=(null)
2024-06-24 01:49:00.103 homeassistant kernel: audit: type=1327 audit(1719193740.094:1875): proctitle=72756E63002D2D726F6F74002F7661722F72756E2F646F636B65722F72756E74696D652D72756E632F6D6F6279002D2D6C6F67002F72756E2F636F6E7461696E6572642F696F2E636F6E7461696E6572642E72756E74696D652E76322E7461736B2F6D6F62792F61313631613030363766333261343733633162366333363035
2024-06-24 01:49:00.103 homeassistant kernel: audit: type=1334 audit(1719193740.098:1876): prog-id=446 op=UNLOAD
2024-06-24 01:49:00.103 homeassistant kernel: audit: type=1300 audit(1719193740.098:1876): arch=c00000b7 syscall=57 success=yes exit=0 a0=11 a1=0 a2=0 a3=0 items=0 ppid=126315 pid=126324 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="runc" exe="/usr/bin/runc" subj=unconfined key=(null)
2024-06-24 01:49:00.103 homeassistant kernel: audit: type=1327 audit(1719193740.098:1876): proctitle=72756E63002D2D726F6F74002F7661722F72756E2F646F636B65722F72756E74696D652D72756E632F6D6F6279002D2D6C6F67002F72756E2F636F6E7461696E6572642F696F2E636F6E7461696E6572642E72756E74696D652E76322E7461736B2F6D6F62792F61313631613030363766333261343733633162366333363035
2024-06-24 01:49:35.992 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-d5fbabe1ab3813b3b3c2458e88a67c7ef4f8e510e5694e7ea154fe424eb012a9-runc.wjz2DB.mount: Deactivated successfully.
2024-06-24 02:48:24.787 homeassistant kernel: kauditd_printk_skb: 6 callbacks suppressed
2024-06-24 02:48:24.787 homeassistant kernel: audit: type=1334 audit(1719197304.781:1879): prog-id=448 op=LOAD
2024-06-24 02:48:24.787 homeassistant kernel: audit: type=1334 audit(1719197304.785:1880): prog-id=449 op=LOAD
2024-06-24 02:48:24.787 homeassistant kernel: audit: type=1334 audit(1719197304.785:1881): prog-id=450 op=LOAD
2024-06-24 02:48:24.824 homeassistant systemd[1]: Starting Hostname Service...
2024-06-24 02:48:25.143 homeassistant systemd[1]: Started Hostname Service.
2024-06-24 02:48:25.159 homeassistant kernel: audit: type=1334 audit(1719197305.153:1882): prog-id=451 op=LOAD
2024-06-24 02:48:25.159 homeassistant kernel: audit: type=1334 audit(1719197305.153:1883): prog-id=452 op=LOAD
2024-06-24 02:48:25.159 homeassistant kernel: audit: type=1334 audit(1719197305.153:1884): prog-id=453 op=LOAD
2024-06-24 02:48:25.184 homeassistant systemd[1]: Starting Time & Date Service...
2024-06-24 02:48:25.447 homeassistant systemd[1]: Started Time & Date Service.
2024-06-24 02:48:55.179 homeassistant systemd[1]: systemd-hostnamed.service: Deactivated successfully.
2024-06-24 02:48:55.306 homeassistant kernel: audit: type=1334 audit(1719197335.300:1885): prog-id=450 op=UNLOAD
2024-06-24 02:48:55.307 homeassistant kernel: audit: type=1334 audit(1719197335.300:1886): prog-id=449 op=UNLOAD
2024-06-24 02:48:55.307 homeassistant kernel: audit: type=1334 audit(1719197335.300:1887): prog-id=448 op=UNLOAD
2024-06-24 02:48:55.491 homeassistant systemd[1]: systemd-timedated.service: Deactivated successfully.
2024-06-24 02:48:55.510 homeassistant kernel: audit: type=1334 audit(1719197335.504:1888): prog-id=453 op=UNLOAD
2024-06-24 02:48:55.510 homeassistant kernel: audit: type=1334 audit(1719197335.504:1889): prog-id=452 op=UNLOAD
2024-06-24 02:48:55.511 homeassistant kernel: audit: type=1334 audit(1719197335.504:1890): prog-id=451 op=UNLOAD


### Additional information

Steps to reproduce:

## System Information

version | core-2024.6.4
-- | --
installation_type | Home Assistant OS
dev | false
hassio | true
docker | true
user | root
virtualenv | false
python_version | 3.12.2
os_name | Linux
os_version | 6.6.31-haos-raspi
arch | aarch64
timezone | America/Chicago
config_dir | /config

<details><summary>Home Assistant Cloud</summary>

logged_in | false
-- | --
can_reach_cert_server | ok
can_reach_cloud_auth | ok
can_reach_cloud | ok

</details>

<details><summary>Home Assistant Supervisor</summary>

host_os | Home Assistant OS 12.4
-- | --
update_channel | stable
supervisor_version | supervisor-2024.06.0
agent_version | 1.6.0
docker_version | 26.1.4
disk_total | 57.8 GB
disk_used | 4.7 GB
healthy | true
supported | true
host_connectivity | true
supervisor_connectivity | true
ntp_synchronized | true
virtualization | 
board | rpi4-64
supervisor_api | ok
version_api | ok
installed_addons | File editor (5.8.0), MariaDB (2.7.1), Mosquitto broker (6.4.1), Zigbee2MQTT (1.38.0-1)

</details>

<details><summary>Dashboards</summary>

dashboards | 2
-- | --
resources | 1
views | 1
mode | yaml

</details>

<details><summary>Recorder</summary>

oldest_recorder_run | June 22, 2024 at 2:42 AM
-- | --
current_recorder_run | June 24, 2024 at 9:49 AM
estimated_db_size | 18.61 MiB
database_engine | mysql
database_version | 10.11.6

</details>

### Additional information

I'm clueless as to why its doing this...
ZhuDaHai commented 3 months ago

Still broken in Core 2024.7.0

ZhuDaHai commented 3 months ago

Still broken in Core 2024.7.1

ZhuDaHai commented 2 months ago

Still broken in Core 2024.7.2

ZhuDaHai commented 2 months ago

TBC: The System->General settings till show Celsius for the Unit System, but all the sensors temperatures show as Fahrenheit - even though they are set to return Celsius in their code.

Also, I tried setting my Country to Canada, which uses Metric, but that did not help at all.

ZhuDaHai commented 2 months ago

Here is a comparison of core.conf from a HA server that I've had running and upgrading for many years now. Notice that it has both 'unit_system' and 'unit_system_v2' in its file:

{ "version": 1, "minor_version": 4, "key": "core.config", "data": { "latitude": 52.3731339, "longitude": 4.8903147, "elevation": 0, "unit_system": "metric", "location_name": "Home", "time_zone": "UTC", "external_url": null, "internal_url": null, "unit_system_v2": "metric", "language": "en", "radius": 100 } }

Here is the core.conf file from my new HA install that's been up and running for just a couple of months now (and is having the issue of not applying 'metric' to the temperatures on reboot as reported in this Issue:

{ "version": 1, "minor_version": 4, "key": "core.config", "data": { "latitude": 38.94120278562837, "longitude": -94.7130260921069, "elevation": 0, "unit_system_v2": "metric", "location_name": "Home", "time_zone": "America/Chicago", "external_url": null, "internal_url": null, "currency": "USD", "country": "CA", "language": "en", "radius": 100 } }

Notice that it does NOT have unit_system setting in the config and that unit_system_v2 is correctly set to 'metric'. However, if I reboot this HA install, it reverts back to Ferinheit (us_customary) on the sensors while still showing Celsius in System -> General

ZhuDaHai commented 2 months ago

In unit_system.py I see:

image

But in core.py:

image

Shouldn't METRIC_SYSTEM be _CONF_UNIT_SYTEM_METRIC in core.py ?

I'll stop for now. I have no idea what I'm doing. I just want this fixed.

ZhuDaHai commented 2 months ago

I'm about to edit .storage/core.conf and add:

"unit_system": "metric",

to it to see if that fixes the problem. YIPES!

ZhuDaHai commented 2 months ago

Core 2024.7.3 still broken

And placing "unit_system": "metric",

in core.config did nothing. It just gets removed and the temperature values revert to Fahrenheit as before (even though "unit_system_v2" is set to "metric" in core.config

ARGH

ZhuDaHai commented 2 months ago

Soo....after more digging I've found that the System Monitor Integration ALWAYS reports back Celsius regardless of the System->General Unit of Measurement settings. Odd

I've also found this to be an open issue since 2022 with the only resolution (hack) being to create a sensor template to recalculate the temperature back to C when the Unit_system/unit_system_v2 defaults somehow to F (for FAIL).

So, yeah, that what I did. Maybe within my lifetime this will be addressed and fixed in the code. ha

ViorelMocanu commented 1 month ago

I have the same issue... image I need Celsius, after restart SOME sensors revert to Fahrenheit, not all of them. If I go into Settings > System > General > Unit System and switch to US customary, Update, then back to Metric, it resets everything to Celsius correctly but the result is the graph above. Can anyone help here?

im-kulikov commented 3 weeks ago

any updates?