philchillbill wrote: ↑Wednesday 27 May 2020 22:15
Romel wrote:Hi, is here someone who can discover zigbee devices ?
I am running zigbee2mqtt, I added description of light :"Alexa_Name:computer", but Alexicz cant discover it. Other items was discovered fine.
Look at
http://192.168.x.y:8080/json.htm?type=devices&rid=aaa (where aaa is the idx of your zigbee light) in your browser. Now ask yourself how that json will be interpreted within DomoticzHandler. What class of endpoint will it fall under?
Hi plilchillbill and thank you for helping!
IDx of zigbee light is 38 and here is json output:
Code: Select all
{
"ActTime" : 1590649772,
"AstrTwilightEnd" : "23:51",
"AstrTwilightStart" : "01:45",
"CivTwilightEnd" : "21:25",
"CivTwilightStart" : "04:11",
"DayLength" : "15:52",
"NautTwilightEnd" : "22:21",
"NautTwilightStart" : "03:14",
"ServerTime" : "2020-05-28 09:09:32",
"SunAtSouth" : "12:48",
"Sunrise" : "04:52",
"Sunset" : "20:44",
"app_version" : "2020.2",
"result" :
[
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"Color" : "{\"b\":0,\"cw\":0,\"g\":0,\"m\":2,\"r\":0,\"t\":127,\"ww\":0}",
"CustomImage" : 0,
"Data" : "Off",
"Description" : "Alexa_Name:computer",
"DimmerType" : "abs",
"Favorite" : 0,
"HardwareID" : 9,
"HardwareName" : "Zigbee2mqttRaspberryPi",
"HardwareType" : "Zigbee2MQTT",
"HardwareTypeVal" : 94,
"HaveDimmer" : true,
"HaveGroupCmd" : false,
"HaveTimeout" : false,
"ID" : "0x680ae2fffe160741_light",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2020-05-27 23:07:04",
"Level" : 1,
"LevelInt" : 1,
"MaxDimLevel" : 100,
"Name" : "sw-pc-desk",
"Notifications" : "false",
"PlanID" : "7",
"PlanIDs" :
[
7
],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "WW",
"SwitchType" : "Dimmer",
"SwitchTypeVal" : 7,
"Timers" : "false",
"Type" : "Color Switch",
"TypeImg" : "dimmer",
"Unit" : 11,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "279",
"YOffset" : "214",
"idx" : "38"
}
],
"status" : "OK",
"title" : "Devices"
}
I suppose that it is dimmer class ? I dont know what do you expectly meaning class of endpoint.
Here is another device working well:
Code: Select all
{
"ActTime" : 1590650020,
"AstrTwilightEnd" : "23:51",
"AstrTwilightStart" : "01:45",
"CivTwilightEnd" : "21:25",
"CivTwilightStart" : "04:11",
"DayLength" : "15:52",
"NautTwilightEnd" : "22:21",
"NautTwilightStart" : "03:14",
"ServerTime" : "2020-05-28 09:13:40",
"SunAtSouth" : "12:48",
"Sunrise" : "04:52",
"Sunset" : "20:44",
"app_version" : "2020.2",
"result" :
[
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Off",
"Description" : "Alexa_Name: dining light",
"DimmerType" : "none",
"Favorite" : 0,
"HardwareID" : 3,
"HardwareName" : "dummy",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "00014056",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2020-05-27 23:07:02",
"Level" : 99,
"LevelInt" : 99,
"MaxDimLevel" : 100,
"Name" : "sw-jidedlni-stul",
"Notifications" : "false",
"PlanID" : "7",
"PlanIDs" :
[
7
],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Switch",
"SwitchType" : "On/Off",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "Light/Switch",
"TypeImg" : "lightbulb",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "212",
"YOffset" : "172",
"idx" : "6"
}
],
"status" : "OK",
"title" : "Devices"
}