Niko Home Control status check
Posted: Thursday 14 April 2016 22:43
hi all,
i'm looking for a way to update the status of my Domoticz switches, which control my Niko Home Control lights.
The on and off actions in Domoticz are controlled via a python script which executes a JSON request to the NHC gateway. For instance:
script:///home/pi/domoticz/scripts/python/Set_NHC.py "2" "100" "<IP of the nHC gateway>"
this would set the lights for id 2 (kitchen) to ON (100)
I can also execute a script which returns me the full list of all devices and their statuses (in JSON)
So now i would like to match them every X secs. Because it is possible to change the status from outside of Domoticz by pressing a light button in the house (= NHC button).
I thought it would be somewhat like the script i found about updating Philips HUE light statuses, but i can't seem to manage to tweak it for my needs.
https://www.domoticz.com/wiki/Philips_H ... Hue_status
Any suggestions?
Thanks in advance!
Kind regards,
Tom
i'm looking for a way to update the status of my Domoticz switches, which control my Niko Home Control lights.
The on and off actions in Domoticz are controlled via a python script which executes a JSON request to the NHC gateway. For instance:
script:///home/pi/domoticz/scripts/python/Set_NHC.py "2" "100" "<IP of the nHC gateway>"
this would set the lights for id 2 (kitchen) to ON (100)
I can also execute a script which returns me the full list of all devices and their statuses (in JSON)
So now i would like to match them every X secs. Because it is possible to change the status from outside of Domoticz by pressing a light button in the house (= NHC button).
I thought it would be somewhat like the script i found about updating Philips HUE light statuses, but i can't seem to manage to tweak it for my needs.
https://www.domoticz.com/wiki/Philips_H ... Hue_status
Any suggestions?
Thanks in advance!
Kind regards,
Tom