A simple PHP script to pull your favourites/dashboard devices from Domoticz and write them into the devices configuration file for ha-bridge.
- You should only run this script while ha-bridge is not running
- This will replace all current devices in ha-bridge. If you're not sure you want this, back up first!
- PHP (5)
- PHP JSON extensions
apt-get install php5-cli php5-json
-
Install dependencies
-
git clone https://github.com/dswinton/domoticz-habridge-sync.git
-
Edit the configuration lines at the top of sync.php
-
Stop ha-bridge
-
Run sync.php
-
Restart ha-bridge
-
Tell Alexa to re-discover devices
-
...?
-
PROFIT!