http://kleine-nerdprojekte.blogspot.ch/
https://wiki.pilight.org/doku.php/receivers
https://home-assistant.io/components/pilight/
https://wiki.pilight.org/doku.php/electronics#introduction_433_mhz_encoderdecoder
Install samba and mosquitto (MQTT)
https://github.com/home-assistant/hassbian-scripts
1 2 | sudo hassbian-config install mosquitto </code><code>sudo hassbian-config install samba |
Install pilight
http://kleine-nerdprojekte.blogspot.ch/2014/02/auslesen-von-temperaturwerten-der.html
https://www.pilight.org/get-started/installation/
Set port for deamon:
https://wiki.pilight.org/doku.php/settings
1 | vim /etc/pilight/config.json |
And add the following next to "webserver-port": 5001,
1 | "port": 5000, |
Start daemon with the following command if pilight-reveive says no pilight ssdp connections found (use option -D for debugging purposes):
1 | sudo pilight-daemon |
Set ID’s for Stations
I bought two of these: http://www.pearl.ch/a-NC7159-3041.shtml
Monitor sent data with the following command:
1 | sudo pilight-receive |
Example of Data:
1 2 3 4 5 6 7 8 9 10 11 12 | { "message": { "id": 10, "temperature": 21.3, "humidity": 19.0, "battery": 1 }, "origin": "receiver", "protocol": "alecto_ws1700", "uuid": "0000-b8-27-eb-cad9b1", "repeats": 1 } |
Here the ID of the Station is 10.
Add Sensor in Home Assistant config:
1 2 3 4 5 6 | - platform: pilight name: 'Sensor 1' variable: temperature payload: id: 10 unit_of_measurement: '°C' |
Activate HTTPS(TLS) with Let’s Encrypt
https://home-assistant.io/blog/2015/12/13/setup-encryption-using-lets-encrypt/
Then fix permissions (as user pi):
1 2 3 4 5 6 | cd /etc/letsencrypt sudo chown -R root:homeassistant live sudo chown -R root:homeassistant archive sudo chmod -R 755 live sudo chmod -R 755 archive sudo systemctl restart home-assistant@homeassistant.service |