Hi,
new to this forum and not sure where to post this.
My main question is how to make sure all automated components (in particular switches) go to a fial safe state in case of Raspberry PI failure (for example corrupt SD card).
In my case because of particular construction issues with my Somfy blinds I have installed a hard switch which I use to block power to the blinds in case the door is not fully open or fully close. This is to prevent the door from damaging the blinds because during construction of our home extension the blinds were fixed to close to the door. Now when the door is halfway open I run the risk of the blinds jamming into the door when operated.
Now, suppose the Raspberry fails when the power to the blinds is blocked. I wont be able to operate them untill the PI comes back on.
Any suggestions? Thanks
kind regards,
Hein
Action in case of Raspberry PI failure
Moderators: leecollings, remb0
- Antori91
- Posts: 136
- Joined: Sunday 12 February 2017 17:12
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10717
- Location: France
- Contact:
Re: Action in case of Raspberry PI failure
In my environment, I've installed two Domocticz servers (cluster). If the main one fails, the Domoticz instance backup is assumed to deliver the service replacing the main server.
I've to say my Main server is Domoticz V3.5877 running in Synology platform. This main Domoticz instance (running of course 24/7) failed only one time in about two years.
I've to say my Main server is Domoticz V3.5877 running in Synology platform. This main Domoticz instance (running of course 24/7) failed only one time in about two years.
Last edited by Antori91 on Sunday 09 September 2018 12:27, edited 1 time in total.
Domoticz High Availability Cluster: Synology Dz V4.10693 (Main) - Raspberry Dz V4.10717 (Backup) - Scripts Node.js
Alarm server: Raspberry - motionEye - iot_ALARM-SVR Node.js
Sensors/Actuators: ESP8266-Arduino
https://github.com/Antori91/Home_Automation
Alarm server: Raspberry - motionEye - iot_ALARM-SVR Node.js
Sensors/Actuators: ESP8266-Arduino
https://github.com/Antori91/Home_Automation
Re: Action in case of Raspberry PI failure
I use a UPS for 2 Raspberry's (Main and Slave) and for the blinds I have for doors and windows.
This way I always have a limited time for normal operation.
For SD-card failure I use industrial grade SD-cards, make sure that almost all write actions go to tmpfs (/var/log) and a USB-stick.
On the USB-stick is Domoticz running. And that USB-stick is mirrored to a NAS every hours.
This way I always have a limited time for normal operation.
For SD-card failure I use industrial grade SD-cards, make sure that almost all write actions go to tmpfs (/var/log) and a USB-stick.
On the USB-stick is Domoticz running. And that USB-stick is mirrored to a NAS every hours.
-
- Posts: 8
- Joined: Sunday 09 September 2018 11:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Action in case of Raspberry PI failure
Thanks for the reply. Isnt that supposed to mean you need two zwave sticks / two rfx modules?Antori91 wrote: ↑Sunday 09 September 2018 12:11 In my environment, I've installed two Domocticz servers (cluster). If the main one fails, the Domoticz instance backup is assumed to deliver the service replacing the main server.
I've to say my Main server is Domoticz V3.5877 running in Synology platform. This main Domoticz instance (running of course 24/7) failed only one time in about two years.
regards,
Hein
-
- Posts: 8
- Joined: Sunday 09 September 2018 11:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Action in case of Raspberry PI failure
Thanks for the reply. Isnt that supposed to mean you need two zwave sticks / two rfx modules?EddyG wrote: ↑Sunday 09 September 2018 12:27 I use a UPS for 2 Raspberry's (Main and Slave) and for the blinds I have for doors and windows.
This way I always have a limited time for normal operation.
For SD-card failure I use industrial grade SD-cards, make sure that almost all write actions go to tmpfs (/var/log) and a USB-stick.
On the USB-stick is Domoticz running. And that USB-stick is mirrored to a NAS every hours.
Is there a topic on how to create this setup?
kind regards,
Hein
- Antori91
- Posts: 136
- Joined: Sunday 12 February 2017 17:12
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10717
- Location: France
- Contact:
Re: Action in case of Raspberry PI failure
Hein73 wrote: ↑Sunday 09 September 2018 15:10Thanks for the reply. Isnt that supposed to mean you need two zwave sticks / two rfx modules?Antori91 wrote: ↑Sunday 09 September 2018 12:11 In my environment, I've installed two Domocticz servers (cluster). If the main one fails, the Domoticz instance backup is assumed to deliver the service replacing the main server.
I've to say my Main server is Domoticz V3.5877 running in Synology platform. This main Domoticz instance (running of course 24/7) failed only one time in about two years.
regards,
Hein
http://www.domoticz.com/forum/viewtopic ... 38&t=24088
Domoticz High Availability Cluster: Synology Dz V4.10693 (Main) - Raspberry Dz V4.10717 (Backup) - Scripts Node.js
Alarm server: Raspberry - motionEye - iot_ALARM-SVR Node.js
Sensors/Actuators: ESP8266-Arduino
https://github.com/Antori91/Home_Automation
Alarm server: Raspberry - motionEye - iot_ALARM-SVR Node.js
Sensors/Actuators: ESP8266-Arduino
https://github.com/Antori91/Home_Automation
Re: Action in case of Raspberry PI failure
My slave has just e few (not important) devices and can be used in case the master hardware fails.Hein73 wrote: ↑Sunday 09 September 2018 15:11Thanks for the reply. Isnt that supposed to mean you need two zwave sticks / two rfx modules?EddyG wrote: ↑Sunday 09 September 2018 12:27 I use a UPS for 2 Raspberry's (Main and Slave) and for the blinds I have for doors and windows.
This way I always have a limited time for normal operation.
For SD-card failure I use industrial grade SD-cards, make sure that almost all write actions go to tmpfs (/var/log) and a USB-stick.
On the USB-stick is Domoticz running. And that USB-stick is mirrored to a NAS every hours.
Is there a topic on how to create this setup?
kind regards,
Hein
Installation is close to the same on both so switching is easy.
The most important part is: use an industrial SD-card and write mostly to tmpfs.
This way your SD-card will survive for many years.
I use an 16 Gb industrial SD-card from Sandisk which can be bought at amazon.de
Who is online
Users browsing this forum: No registered users and 1 guest