For Apple mobile users who want to know the temperature of a room in Apple home using a temperature sensor from Fibaro HCL
Automation Flow:
Aeotec light/temp sensor > Fibaro HCL > bash script >; Domoticz virtual device > homebridge/homekit
Setup Steps
Step 1. Create a temperature virtual device in Domoticz and take note of the device id.
Step 2. Create a bash file with the following script, replacing the XX and user:password fields.
#!/bin/bash
status=/home/pi/scripts/temperature
domo_idx=XX
fib_idx=XX
curl "http://user:password@XX.XX.XX.XX/api/panels/temperature?type=devices&method=single&id="$fib_idx > $status
temperature=`cat $status | sed 's/[{}]//g' | awk -F : '{print $3}' | awk -F , '{print $1}'`
curl "http://XX.XX.XX.XX:8080/json.htm?type=command¶m=udevice&idx="$domo_idx"&nvalue=0&svalue="$temperature
Step 3. Create a cron entry to run this script every 5 or 10 mins (temperature doesn't change that quickly)
Subscribe to:
Post Comments (Atom)
dead pi
Well, I guess it has to happen at some point. the home automation raspberry pi has died. Much to do with the stupid Strontium mini SD card. ...

-
Broadlink now has quite a lot of integration options almost out of the box. If you enable Broadlink IHC, you can directly link it to Alexa b...
-
Since the discovery of blogs and wikis, I have never found that much fun in documentation. There is a certain element of funlyness, if there...
-
I spoke too soon, just as I was commenting on how stable Windows XP was in Apple is Evil , Windows XP decided to go blue screen on me. At th...

No comments:
Post a comment