Tnx for writing this script!
I created a temp+humidity virtual device and your script is providing my TADO's measurements correctly!
What kind of devices do I create for
Code: Select all
$tado_setpointIDX = "nnn"; // Your Domoticz DeviceID for the Tado Setpoint device
$tado_heatdemandIDX = "nnn"; // Your Domoticz DeviceID for the current Tado Heat Demand
$tado_anyoneHomeIDX = "nnn"; // Your Domoticz DeviceID for the Anyone Home? alert
A virtual switch device on/off seems OK for $tado_anyoneHomeIDX
A virtual Setpoint (Temperature) seems OK for $tado_setpointIDX.
Domoticz receives temp+hum / homestatus / setpoint. Can it work in the other direction too? Changing the setpoint temp from Domoticz?
Also, sometimes the script is spitting out this error and returning temp 0 and humidty 0 to Domoticz
Code: Select all
Token Age: 142 | Used cached token | HomeID: - ZoneID: - Temp&Humidity: ;;2 - Setpoint: - Status: Off
PHP Warning: min(): When only one parameter is given, it must be an array in /volume1/tado.php on line 322