Everything seems to be working as expected now. Thanks for giving it your time. The last problem is that if I restart the box, I lose all the settings and have to create an account again.
I usually reboot through the terminal with the reboot command. Maybe that will be the mistake. I can still try from the Kodi menu later. If it makes a difference.
I wasn’t saying it can’t be done of course just you need stability in smart home stuff. If you’re movie crashes the box and now you can’t control the lights while she’s punching you in the arm for saying it’s all cool give me 5, well you know, don’t need that. Stable media player, stable smart system and stable backup server.
This is just my opinion you probably have it all backed up and can just blink and it’ll be up again. Does home assistant do a redundant backup to switch to if main goes down? That would be good.
The other reason I say this is we all end up with spare boxes, people who don’t tinker don’t end up here. So as these boxes cost nothing to run there’s always a good use for it. Thayre amazing really and you guys fixing problems are amazing too.
I did some basic basic at school and a bit of c+ in late 90s but no idea what’s going on now. I’m good with that, debugging was annoying, only learned it for the break out boxes for some advanced solid state physics stuff.
I installed docker 22.06.0 beta0 from your script but no change. I also noticed that it only sees the disk as 2Gb. At the same time, I have a 60GB disk. Maybe it just uses some temporary directory that is lost on reboot.
I think bluetooth can do it, HA automatically read some Bluetooth devices, for example thermometers. And if the CE doesn’t switch the audio device to bluetooth. If I set a different audio output in Kodi then it works for a while until I switch the TV channel. After removing docker it works fine again.
So I’m right. Bluetooth really does it. Deactivating it fixed it. Activating Bluetooth on the box and restarting again caused the sound error. So bluetooth cannot be used if there is a supported device in range that will automatically connect to HA. Like my thermometer.
No idea for HACS. I only followed old instructions in this and other thread to get it running.
Maybe path should be set manually to /storage/HomeAssistant in script from get.hacs.xyz.
CoreELEC:~/downloads # systemctl status hassio-supervisor.service -l --no-pager
● hassio-supervisor.service - Hass.io supervisor
Loaded: loaded (/storage/.config/system.d/hassio-supervisor.service; enabled; preset: disabled)
Active: active (running) since Wed 2023-03-15 12:41:30 UTC; 2min 59s ago
Process: 7893 ExecStartPre=/storage/.docker/bin/docker stop hassio_supervisor (code=exited, status=0/SUCCESS)
Main PID: 7900 (bash)
Tasks: 11 (limit: 3726)
Memory: 8.7M
CGroup: /system.slice/hassio-supervisor.service
├─7900 bash /storage/.opt/sbin/hassio-supervisor
└─7921 docker start --attach hassio_supervisor
Mar 15 12:42:35 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:35 INFO (MainThread) [supervisor.host.services] Updating service information
Mar 15 12:42:35 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:35 INFO (MainThread) [supervisor.host.manager] Host information reload completed
Mar 15 12:42:41 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:41 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_FAI LED/ContextType.DNS_SERVER
Mar 15 12:42:41 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:41 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/Conte xtType.CORE
Mar 15 12:42:41 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:41 INFO (MainThread) [supervisor.resolution.check] System checks complete
Mar 15 12:42:41 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:41 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state Cor eState.RUNNING
Mar 15 12:42:49 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:49 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
Mar 15 12:42:49 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:49 CRITICAL (MainThread) [supervisor.jobs] The following job conditions are ignored and will ma ke the system unstable when they occur: {<JobCondition.HEALTHY: 'healthy'>}
Mar 15 12:42:49 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:49 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.R UNNING
Mar 15 12:42:49 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:49 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
CoreELEC:~/downloads # systemctl status hassio-supervisor.service -l --no-pager
● hassio-supervisor.service - Hass.io supervisor
Loaded: loaded (/storage/.config/system.d/hassio-supervisor.service; enabled; preset: disabled)
Active: active (running) since Wed 2023-03-15 12:41:30 UTC; 3min 22s ago
Process: 7893 ExecStartPre=/storage/.docker/bin/docker stop hassio_supervisor (code=exited, status=0/SUCCESS)
Main PID: 7900 (bash)
Tasks: 11 (limit: 3726)
Memory: 8.7M
CGroup: /system.slice/hassio-supervisor.service
├─7900 bash /storage/.opt/sbin/hassio-supervisor
└─7921 docker start --attach hassio_supervisor
Mar 15 12:42:35 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:35 INFO (MainThread) [supervisor.host.services] Updating service information
Mar 15 12:42:35 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:35 INFO (MainThread) [supervisor.host.manager] Host information reload completed
Mar 15 12:42:41 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:41 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_FAI LED/ContextType.DNS_SERVER
Mar 15 12:42:41 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:41 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/Conte xtType.CORE
Mar 15 12:42:41 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:41 INFO (MainThread) [supervisor.resolution.check] System checks complete
Mar 15 12:42:41 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:41 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state Cor eState.RUNNING
Mar 15 12:42:49 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:49 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
Mar 15 12:42:49 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:49 CRITICAL (MainThread) [supervisor.jobs] The following job conditions are ignored and will ma ke the system unstable when they occur: {<JobCondition.HEALTHY: 'healthy'>}
Mar 15 12:42:49 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:49 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.R UNNING
Mar 15 12:42:49 CoreELEC hassio-supervisor[7921]: 23-03-15 18:12:49 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
20 minutes. And nothing happened. The first time around I got to the web UI in barely 2-3 mins.
Anyway, wrt to your steps.
bash install-supervised-hass-on-coreelec.bash -d /storage/HomeAssistant
systemctl status hassio-supervisor.service -l --no-pager
# after a minute or two port should be open and web interface available
# but then still need few more minutes to get everything set up
netstat -ant | grep 8123
# to enable installing addons (don't know if this is safe or not)
# https://community.home-assistant.io/t/unhealthy-system-reported-on-arch-linux/251430/2
echo '{"ignore_conditions": ["healthy"]}' >/storage/HomeAssistant/jobs.json
systemctl restart hassio-supervisor.service
after the bash install home assistant supervised, should I wait for the web UI? Or immediately issue the netstat | grep 8123 command?
I believe the other status command is just to check the status of the docker installation and not really a part of the installation.
My other question to you was whether there is a way to clone the emmc installation as its possible to do to an installation on usb or SD.
True, calling install-supervised-hass-on-coreelec.bash installs HA. At then end you get a message where web interface come up.
The systemctl status command and netstat command is just to see if HA is started.
But don’t run both commands for addon installation. This must be called only after HA web interface fully come up (meaning you can log into).
I’m not sure about cloning installation. Whole HA should be stopped but I don’t know if one service stopped is enough because some parts were still running.