Domoticz testing as alternative to Vera Controller
Posted: Sunday 30 October 2016 1:52
Hello ,
I have in mind in the future to migrate my UI7 Vera controllers (2 x VeraLite and 1 x VeraEdge in production) to Domoticz in several steps , the first step is to have :
- A domoticz Slave install closed to each Vera controller , Vera controller keeping the videosurveillance function (motion sensors and cameras)
- A domoticz Master (Remote server without devices) on top of the Domoticz and Vera slave controllers in order to have device sharing from these controllers .
The configuration of the domoticz network is based on the stable domoticz version 3.5.5837 installed on a RPI3 with an Aeotec Z-Wave dongle , an USB300 ESP3 EnOcean dongle
- Aeotec Z stick Gen5 (ZW090) ... https://s3.amazonaws.com/cdn.freshdesk. ... tion%2Fpdf
- Aeotec Smart switch Gen2 (DSC24) ... https://s3.amazonaws.com/cdn.freshdesk. ... tion%2Fpdf
[u][b]1) Domoticz Remote Server only - WD PI Drive installation and boot configuration[/b][/u]
The Rpi3B+ have the USB boot enabled by default
- Download Raspbian Stretch and copy it on WD PI Drives using Win32DiskImager (+ ssh file for ssh activation)
- Boot Rpi3 and login via Putty + sudo raspi-config ( expand root file system and timezone GMT-6) + fixed IP in /etc/dhcpcd.conf )
- Update Stretch : sudo apt-get update , sudo apt-get upgrade
2) Raspbian Strech installation on RPi 3 B and B+ platform (Raspbian version 4.14.34-v7+ )
- Download Raspbian Stretch and copy it on SD card Kingston 8GO 45Mb/s using Win32DiskImager (+ ssh file for ssh activation )
- Boot Rpi3 and login via Putty + sudo raspi-config ( expand root file system and timezone GMT-6) + fixed IP in /etc/dhcpcd.conf )
- Update Stretch : sudo apt-get update , sudo apt-get upgrade
- Install service ntp for time synchronization
- Add the missing Stretch library "libssl" :
sudo wget http://ftp.nl.debian.org/debian/pool/ma ... _armhf.deb
sudo dpkg -i libssl1.0.0_1.0.1t-1+deb8u7_armhf.deb
3) Domoticz installation & Setup (Version stable V4.9700) on RPi 3 platform)
- Installation of Domoticz version 3.5877 stable (sudo curl -L install.domoticz.com | sudo bash)
- Setup of Domoticz ( Startup script , mail , pushbullet notification , backup)
- Change logrotate setup to daily period and 2 files of backlog in /etc/logrotate.conf , /etc/logrotate.d/rsyslog , /home/pi/domoticz/scripts/logrotate/domoticz
- Setup RAM drive of 50M in /etc/fstab for Domoticz log ( tmpfs /var/log tmpfs nodev,nosuid,size = 50M 0 0 ) + sudo mount -a + df -h
- Installation of Domoticz Lite Android App V0.1.430
4) Motherboard Sensors hardware
- Setup of Motherboard Sensors hardware
- Create the Rpi devices CPU usage , Internal temperature , Memory Usage , Hard Disk usage
5) Imperihome GW "MyDomoAtHome"
Install instructions .. https://github.com/empierre/MyDomoAtHom ... /README.md
- Installation npm version 2.15.12
- installation MyDomoAtHome GW version 0.2.39
- Integration of ImperiHome V4.1.17 with "MyDomoAtHome" GW
6) UPS manager Post : [url]http://domoticz.com/forum/viewtopic.php ... 20#p112310[/url]
Installation of nut in Rpi (UPS manager)
- installation usbutils ( Integrated in Domoticz stable version v3.8153 )
- installation nut 2.7.2-4
- configuration nutclient in /etc/nut/nut.conf file (mode=standalone)
- configuration of the UPS Forza SL-761 in /etc/nut/ups.conf file (driver = blazer_usb)
- test of the UPS bash script : sudo upsc Forza_UPS
- Create virtual sensor UPS management (Input.Voltage)
- Create Virtual sensor UPS management ( Battery.Voltage)
- Create bash script "/home/pi/domoticz/scripts/ups.sh" to read UPS data and upload to Domoticz UPS virtual device
- Update the crontab to run the script every 5 mn (crontab -e)
7) Monitoring internet speed Post : [url]http://domoticz.com/forum/viewtopic.php ... 40#p113451[/url]
- Installation of speedtest-cli from github site
- Find the test server reference number using speedtest command for future use in the monitoring script
- Create virtual devices ( Ping , Download , Upload)
- Create the internet monitoring bash script to update the virtual devices
- Update crontab to run the script every 5 mn
8) MyDomoticz - Domoticz remote access Post : [url]http://domoticz.com/forum/viewtopic.php ... 40#p119008[/url]
To use the "MyDomoticz" remote access service , a registration is required use the service .
- Configuration in the settings page , MyDomoticz section
- Log in "https://my.domoticz.com"
- Click on the connection icn
9) House mode ]Post : [url]http://domoticz.com/forum/viewtopic.php ... 40#p115568[/url]
"House Mode" security switch in order to have an alarm/automation system setup according presence in the house
- Create a selector switch "House Mode"
- Assign level names Disarm,Home , Away,Night and Vacation to the selector switch
- Assign level actions with housemode python script to the selector switch
- Create a python script per house mode ( housemode_disarm , .) with the necessary actions
- Make the python scripts as executable using chmod +x
10) Linky Meter Post : [url]http://domoticz.com/forum/viewtopic.php ... 20#p167220[/url]
Get Linky smart meter data from french electricity provider "Enedis API" and push it to domoticz
11) Zwave network
- Installation and setup of Zwave+ controller Aeotec Z stick Gen5 added (ZW090) - Version: 1.4-2501-g5af6780-dirty (/dev/ttyACM0)
- Inclusion and setup of smart switch DSC24 Gen2 ZW120
12) EnOcean network
- Installation EnOcean controller ESP3 ( /dev/ttyUSB0 )
13) Misceallenous
- Installation of the SQLite manager ( SQLite Expert Personal 5.2.3) and sqlite3_analyser.exe tool )
2) ToDoList
- Test Scène avec Lua
- Geofence
- Events using Lua
- Sonos Player1
- MySensors Serial GW (Arduino)
- Caméra IP
- IR remote control
- Availability of EnOcean devices
- Availability of weather sensor
- Availability of MySensors devices
- Availability of Utility sensor
- Availablilty of IR remote control
- Rsyslog
- Fail2ban app to monitor Domoticz failed login attemps
- System Alive Checker
- Weather forecast
3) Bug closure :
- PR#1: Node Js version 0.10.29 outdated in Raspbian jessie
- PR#2 : Nut log error "raspberrypi kernel: [79755.044507] usb 1-1.5: usbfs: USBDEVFS_CONTROL failed cmd blazer_usb rqt 33 rq 9 len 8 ret -110" about every 5s
- PR#3 : Missing alarm panel part in the github TODO list (house mode change). Only the display of the status of the Domoticz alarm panel is supported , impossible to change the alarm mode ).
- PR#5 : "Normal" status in the Domoticz security panel to be changed to "Disarm"
I have in mind in the future to migrate my UI7 Vera controllers (2 x VeraLite and 1 x VeraEdge in production) to Domoticz in several steps , the first step is to have :
- A domoticz Slave install closed to each Vera controller , Vera controller keeping the videosurveillance function (motion sensors and cameras)
- A domoticz Master (Remote server without devices) on top of the Domoticz and Vera slave controllers in order to have device sharing from these controllers .
The configuration of the domoticz network is based on the stable domoticz version 3.5.5837 installed on a RPI3 with an Aeotec Z-Wave dongle , an USB300 ESP3 EnOcean dongle
- Aeotec Z stick Gen5 (ZW090) ... https://s3.amazonaws.com/cdn.freshdesk. ... tion%2Fpdf
- Aeotec Smart switch Gen2 (DSC24) ... https://s3.amazonaws.com/cdn.freshdesk. ... tion%2Fpdf
[u][b]1) Domoticz Remote Server only - WD PI Drive installation and boot configuration[/b][/u]
The Rpi3B+ have the USB boot enabled by default
- Download Raspbian Stretch and copy it on WD PI Drives using Win32DiskImager (+ ssh file for ssh activation)
- Boot Rpi3 and login via Putty + sudo raspi-config ( expand root file system and timezone GMT-6) + fixed IP in /etc/dhcpcd.conf )
- Update Stretch : sudo apt-get update , sudo apt-get upgrade
2) Raspbian Strech installation on RPi 3 B and B+ platform (Raspbian version 4.14.34-v7+ )
- Download Raspbian Stretch and copy it on SD card Kingston 8GO 45Mb/s using Win32DiskImager (+ ssh file for ssh activation )
- Boot Rpi3 and login via Putty + sudo raspi-config ( expand root file system and timezone GMT-6) + fixed IP in /etc/dhcpcd.conf )
- Update Stretch : sudo apt-get update , sudo apt-get upgrade
- Install service ntp for time synchronization
- Add the missing Stretch library "libssl" :
sudo wget http://ftp.nl.debian.org/debian/pool/ma ... _armhf.deb
sudo dpkg -i libssl1.0.0_1.0.1t-1+deb8u7_armhf.deb
3) Domoticz installation & Setup (Version stable V4.9700) on RPi 3 platform)
- Installation of Domoticz version 3.5877 stable (sudo curl -L install.domoticz.com | sudo bash)
- Setup of Domoticz ( Startup script , mail , pushbullet notification , backup)
- Change logrotate setup to daily period and 2 files of backlog in /etc/logrotate.conf , /etc/logrotate.d/rsyslog , /home/pi/domoticz/scripts/logrotate/domoticz
- Setup RAM drive of 50M in /etc/fstab for Domoticz log ( tmpfs /var/log tmpfs nodev,nosuid,size = 50M 0 0 ) + sudo mount -a + df -h
- Installation of Domoticz Lite Android App V0.1.430
4) Motherboard Sensors hardware
- Setup of Motherboard Sensors hardware
- Create the Rpi devices CPU usage , Internal temperature , Memory Usage , Hard Disk usage
5) Imperihome GW "MyDomoAtHome"
Install instructions .. https://github.com/empierre/MyDomoAtHom ... /README.md
- Installation npm version 2.15.12
- installation MyDomoAtHome GW version 0.2.39
- Integration of ImperiHome V4.1.17 with "MyDomoAtHome" GW
6) UPS manager Post : [url]http://domoticz.com/forum/viewtopic.php ... 20#p112310[/url]
Installation of nut in Rpi (UPS manager)
- installation usbutils ( Integrated in Domoticz stable version v3.8153 )
- installation nut 2.7.2-4
- configuration nutclient in /etc/nut/nut.conf file (mode=standalone)
- configuration of the UPS Forza SL-761 in /etc/nut/ups.conf file (driver = blazer_usb)
- test of the UPS bash script : sudo upsc Forza_UPS
- Create virtual sensor UPS management (Input.Voltage)
- Create Virtual sensor UPS management ( Battery.Voltage)
- Create bash script "/home/pi/domoticz/scripts/ups.sh" to read UPS data and upload to Domoticz UPS virtual device
- Update the crontab to run the script every 5 mn (crontab -e)
7) Monitoring internet speed Post : [url]http://domoticz.com/forum/viewtopic.php ... 40#p113451[/url]
- Installation of speedtest-cli from github site
- Find the test server reference number using speedtest command for future use in the monitoring script
- Create virtual devices ( Ping , Download , Upload)
- Create the internet monitoring bash script to update the virtual devices
- Update crontab to run the script every 5 mn
8) MyDomoticz - Domoticz remote access Post : [url]http://domoticz.com/forum/viewtopic.php ... 40#p119008[/url]
To use the "MyDomoticz" remote access service , a registration is required use the service .
- Configuration in the settings page , MyDomoticz section
- Log in "https://my.domoticz.com"
- Click on the connection icn
9) House mode ]Post : [url]http://domoticz.com/forum/viewtopic.php ... 40#p115568[/url]
"House Mode" security switch in order to have an alarm/automation system setup according presence in the house
- Create a selector switch "House Mode"
- Assign level names Disarm,Home , Away,Night and Vacation to the selector switch
- Assign level actions with housemode python script to the selector switch
- Create a python script per house mode ( housemode_disarm , .) with the necessary actions
- Make the python scripts as executable using chmod +x
10) Linky Meter Post : [url]http://domoticz.com/forum/viewtopic.php ... 20#p167220[/url]
Get Linky smart meter data from french electricity provider "Enedis API" and push it to domoticz
11) Zwave network
- Installation and setup of Zwave+ controller Aeotec Z stick Gen5 added (ZW090) - Version: 1.4-2501-g5af6780-dirty (/dev/ttyACM0)
- Inclusion and setup of smart switch DSC24 Gen2 ZW120
12) EnOcean network
- Installation EnOcean controller ESP3 ( /dev/ttyUSB0 )
13) Misceallenous
- Installation of the SQLite manager ( SQLite Expert Personal 5.2.3) and sqlite3_analyser.exe tool )
2) ToDoList
- Test Scène avec Lua
- Geofence
- Events using Lua
- Sonos Player1
- MySensors Serial GW (Arduino)
- Caméra IP
- IR remote control
- Availability of EnOcean devices
- Availability of weather sensor
- Availability of MySensors devices
- Availability of Utility sensor
- Availablilty of IR remote control
- Rsyslog
- Fail2ban app to monitor Domoticz failed login attemps
- System Alive Checker
- Weather forecast
3) Bug closure :
- PR#1: Node Js version 0.10.29 outdated in Raspbian jessie
- PR#2 : Nut log error "raspberrypi kernel: [79755.044507] usb 1-1.5: usbfs: USBDEVFS_CONTROL failed cmd blazer_usb rqt 33 rq 9 len 8 ret -110" about every 5s
- PR#3 : Missing alarm panel part in the github TODO list (house mode change). Only the display of the status of the Domoticz alarm panel is supported , impossible to change the alarm mode ).
- PR#5 : "Normal" status in the Domoticz security panel to be changed to "Disarm"