Code: Select all
commandArray['OpenURL'] = 'http://127.0.0.1:8080/json.htm?type=command¶m=udevice&hid='..DUMMY_HW_ID..'&did='..DID..'&dunit=1&dtype=242&dsubtype=1&nvalue=0&svalue=20'This seems to be an undocumented JSON command. I'm very happy I found out about it, but there is one problem: I don't have the full list of possible types & subtypes anymore. There used to be an extensive overview in a forum thread (viewtopic.php?t=4501), but this was removed for some reason. Unfortunately I forgot to make a copy of the info... I only know a few types & subtypes that I looked up a few months ago, which I used in several test scripts:
Code: Select all
DTYPE1 = 80 --Temperature sensor
DSUBTYPE1 = 5 --LaCrosse TX3
DTYPE2 = 243 --General sensor
DSUBTYPE2 = 6 --Percentage
DTYPE3 = 242 --Thermostat
DSUBTYPE3 = 1 --Setpoint
DTYPE4 = 17 --Switch
DSUBTYPE4 = 0 --On/Off switch
Does anybody still have the full list? And why are all posts related to this topic removed?
Thanks!
Martijn
UPDATE:
I think I found the info in the source code: https://github.com/domoticz/domoticz/bl ... aretypes.h
However, if somebody still has an easier-to-read list, or knows where this method is described, please reply! And maybe there are other undocumented features of the JSON interface?