autostart of Domoticz Topic is solved

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
Toulon7559
Posts: 859
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

autostart of Domoticz

Post by Toulon7559 »

When searching for info the keyword is important ....

Recently fitted some Raspberry0 with Domoticz, but now need separate start for Domoticz.
:oops: Probably somewhere a wrong setting.
Using 'search' on this forum got >6000 hits (which is not really useful) and looking at Wiki no unique solution either.

Obviously (re)start is always possible using

Code: Select all

sudo service domoticz.sh restart
Probably simple, but still question:
what setting or file is required to autostart Domoticz?
a) at hard reset of power supply
b) at soft reset of reboot
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: autostart of Domoticz

Post by waaren »

Toulon7559 wrote: Sunday 08 March 2020 13:05 what setting or file is required to autostart Domoticz?
sudo update-rc.d domoticz.sh defaults
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Toulon7559
Posts: 859
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: autostart of Domoticz

Post by Toulon7559 »

Thanks!
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
imautohuttraeger
Posts: 141
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Germany
Contact:

Re: autostart of Domoticz

Post by imautohuttraeger »

waaren wrote: Sunday 08 March 2020 13:14
Toulon7559 wrote: Sunday 08 March 2020 13:05 what setting or file is required to autostart Domoticz?
sudo update-rc.d domoticz.sh defaults
I have typed this in, but still Domoticz is not started automatically after the Pi has booted. Any idea?
Dave21w
Posts: 382
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: autostart of Domoticz

Post by Dave21w »

Does it boot on a restart OK but not on a cold start i.e initial power up ?
imautohuttraeger
Posts: 141
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Germany
Contact:

Re: autostart of Domoticz

Post by imautohuttraeger »

When the Pi reboots after a power outage, Domoticz will not restart. Also when the power adapter (USB) is initially plugged in Domoticz doesn't start. I always have to start it manually via terminal command:

sudo service domoticz.sh restart
User avatar
waltervl
Posts: 5886
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: autostart of Domoticz

Post by waltervl »

You somehow missed the cold boot issue on the troubleshooting wiki: https://www.domoticz.com/wiki/Troublesh ... _cold_boot
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
imautohuttraeger
Posts: 141
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Germany
Contact:

Re: autostart of Domoticz

Post by imautohuttraeger »

Thx very much! Will try that when I will be back home.
imautohuttraeger
Posts: 141
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Germany
Contact:

Re: autostart of Domoticz

Post by imautohuttraeger »

Before I have tried the cold boot workaround I have updated Domoticz from the 2023 to the recent 2024 version. Now everything is fine after my Raspberry starts, Domoticz starts, too. Can`t find the fixing of this issue in the changelog. However, I am happy now 😊
imautohuttraeger
Posts: 141
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Germany
Contact:

Re: autostart of Domoticz

Post by imautohuttraeger »

imautohuttraeger wrote: Saturday 06 January 2024 17:03 Before I have tried the cold boot workaround I have updated Domoticz from the 2023 to the recent 2024 version. Now everything is fine after my Raspberry starts, Domoticz starts, too. Can`t find the fixing of this issue in the changelog. However, I am happy now 😊
Update: Sorry, I was wrong. Auto-restart of Domoticz only works when the Raspi is restarted via shh command. But if the Raspi is disconnected from power supply and boots after reconnection of the USB power supply, it is not working. So the cold boot workaround still has to be enabled.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest