Skip to content

Instantly share code, notes, and snippets.

@wolph
Created October 5, 2016 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wolph/dd12451e6a1c68d62f3c5e064f60b4ff to your computer and use it in GitHub Desktop.
Save wolph/dd12451e6a1c68d62f3c5e064f60b4ff to your computer and use it in GitHub Desktop.
// Channel: domoticz/out
// Current power usage for idx 66 = 226.2 W
{
"Battery" : 255,
"RSSI" : 12,
"dtype" : "Usage",
"id" : "0000701",
"idx" : 66,
"name" : "Unknown",
"nvalue" : 0,
"stype" : "Electric",
"svalue1" : "226.2",
"unit" : 2
}
// Cumulative power usage for idx 78 = 654594.750 Wh and current usage is 226.200 W
{
"Battery" : 255,
"RSSI" : 12,
"dtype" : "General",
"id" : "00000701",
"idx" : 78,
"name" : "kWh pc media",
"nvalue" : 0,
"stype" : "kWh",
"svalue1" : "226.200",
"svalue2" : "654594.750",
"unit" : 1
}
// Setting light 195 (name "light bureaus") and setting it to 68 (arbitrary value, in this case percentage +1)
{
"Battery" : 255,
"RSSI" : 12,
"dtype" : "Light/Switch",
"id" : "00001201",
"idx" : 195,
"name" : "licht bureaus",
"nvalue" : 2,
"stype" : "Switch",
"svalue1" : "68",
"switchType" : "Dimmer",
"unit" : 1
}
// Setting light 195 (name "light bureaus") and setting it to 76
domoticz/out {
"Battery" : 255,
"RSSI" : 12,
"dtype" : "Light/Switch",
"id" : "00001201",
"idx" : 195,
"name" : "licht bureaus",
"nvalue" : 2,
"stype" : "Switch",
"svalue1" : "76",
"switchType" : "Dimmer",
"unit" : 1
}
// Turning on light 57 (non-dimmable)
domoticz/out {
"Battery" : 255,
"RSSI" : 12,
"dtype" : "Light/Switch",
"id" : "00000601",
"idx" : 57,
"name" : "licht slaapkamer",
"nvalue" : 1,
"stype" : "Switch",
"svalue1" : "0",
"switchType" : "On/Off",
"unit" : 1
}
// Turning off light 57 (non-dimmable)
domoticz/out {
"Battery" : 255,
"RSSI" : 12,
"dtype" : "Light/Switch",
"id" : "00000601",
"idx" : 57,
"name" : "licht slaapkamer",
"nvalue" : 0,
"stype" : "Switch",
"svalue1" : "0",
"switchType" : "On/Off",
"unit" : 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment