Is it possible to get domoticz values other then via JSON URLs?
Posted: Friday 15 July 2016 12:32
So I had written some scripts for my RPi, which basically do this:
- Get current dimmer value for all lights (via JSON URL)
- Turn lights x, y, & z off (if on)
- If light a's dimmer level is <5%, set to 5, if <10%, set to 10, etc.
This all works fine, but does take quite some time. I'm guessing/hoping that this can be sped up by getting the values directly from the device itself, instead of going through the interwebs (script runs on the same device as domoticz, RPi with Raspbian).
So, is it possible to get the values in Domoticz from the device itself, or is getting them via the JSON URL's the only way?
- Get current dimmer value for all lights (via JSON URL)
- Turn lights x, y, & z off (if on)
- If light a's dimmer level is <5%, set to 5, if <10%, set to 10, etc.
This all works fine, but does take quite some time. I'm guessing/hoping that this can be sped up by getting the values directly from the device itself, instead of going through the interwebs (script runs on the same device as domoticz, RPi with Raspbian).
So, is it possible to get the values in Domoticz from the device itself, or is getting them via the JSON URL's the only way?