home-assistant
home-assistant copied to clipboard
auto start at reboot not working.
i am happy to say i got HA working manually after entering this command: hass -v from your very detailed instruction. went to 192.168.1.61:8123 and saw HA working great!
i dont need anything fancy such as ssh, port forwarding, reverse proxy, nor ssl. so i skipped all that. i do need auto start should the Mi Box 4k lose power off course. i installed Termux: Boot. opened the app. exit. then i ran these commands: mkdir -p ~/.termux/boot
cd ~/.termux/boot
nano haboot
put this in haboot file:
#! /data/data/com.termux/files/usr/bin/sh
termux-wake-lock
sshd
source ~/hass/bin/activate
hass --daemon
deactivate
exit and save
restarted my Mi Box to verify if the script works or not. verified the ip address is still the same, it is. opened my browser and went to 192.168.1.61:8123 but nothing loads up this time. did i do something wrong? please help!
i made haboot executable too by : chmod +x haboot that still did not work. could you please let me know if your boot script is any different or do i have to chmod the file to something else? maybe i missed a step?
Looks pretty similar to my boot script (mine is exactly as written in README.md. Here are some debugging steps you could try:
- Did you install Termux: Boot and launch the app once to make the connection? See the Termux: Boot wiki for info.
- Are some of the steps in your boot sequence executed, but not all? For example, maybe you could check if you can access the tablet via SSH after rebooting - that would tell you that the boot script progressed to that line, and it's just the HASS startup that isn't working.