dannybloe wrote:Atmosphere wrote:dannybloe wrote:
Could you show me the actual json command? It shouldn't be too hard to add support for it.
Sure, here is the command: json.htm?type=command¶m=udevice&idx=69&nvalue=0&svalue=$newpoint
(http://domoticz_ip_address:8080/json.htm?type=command¶m=udevice&idx=69&nvalue=0&svalue=$newpoint)
Where IDX is the well known, and svalue (now $newpoint) the new setpoint (type, nvalue and udevice don't change)
Can you tell me the device information for this device? (find the device entry in in this results: http://<domoticz url>:<port>/json.htm?type=devices&displayhidden=1&filter=all&used=true).
Code: Select all
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "15.0",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 7,
"HardwareName" : "OpenThermGW",
"HardwareType" : "OpenTherm Gateway with LAN interface",
"HardwareTypeVal" : 20,
"HaveTimeout" : false,
"ID" : "0000005",
"LastUpdate" : "2016-06-01 21:30:27",
"Name" : "CV - Thermostaat",
"Notifications" : "false",
"PlanID" : "2",
"PlanIDs" : [ 2 ],
"Protected" : false,
"SetPoint" : "15.0",
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "SetPoint",
"Timers" : "true",
"Type" : "Thermostat",
"TypeImg" : "override_mini",
"Unit" : 0,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "43"
},
dannybloe wrote:
In the mean time you can do domoticz.devices[69].update(0, <setpointvalue>). That should work. Could you try that?
domoticz.devices[43].update(0, 20.5) works! Thank you! That solved it....
On the issue with the hardware timing out i've found the following:
Code: Select all
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Off",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 4,
"HardwareName" : "AeonLabs Z-stick",
"HardwareType" : "OpenZWave USB",
"HardwareTypeVal" : 21,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : true,
"ID" : "00000F01",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2016-06-01 14:11:39",
"Level" : 100,
"LevelInt" : 100,
"MaxDimLevel" : 100,
"Name" : "Dimmer Gang",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Switch",
"SwitchType" : "Dimmer",
"SwitchTypeVal" : 7,
"Timers" : "false",
"Type" : "Light/Switch",
"TypeImg" : "dimmer",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "150"
},
As you can see the HaveTimeout value is True.... can we use that within dzVents?
Thank you for your help