Closed freeforall2 closed 1 year ago
Need to get Domoticz api output for each IDX and post here… see https://www.domoticz.com/wiki/Domoticz_API/JSON_URL%27s#Retrieve_status_of_specific_device
(Also, could be because you’re running as a child bridge. Never managed to get child bridge setup working properly & showing all devices here, so can’t really vouch for it’s use 🤷🏼… and your MQTT config looks to be invalid so expect non-instant updates etc)
Needs the specific output for the individual IDXs in question, not the device list.
Sure I didn't see your comment, I was just updating my original post with more details for help.
output for idx 836 as an example (a switch for power plug):
{ "ActTime" : 1696073250, "AstrTwilightEnd" : "21:19", "AstrTwilightStart" : "06:03", "CivTwilightEnd" : "20:05", "CivTwilightStart" : "07:17", "DayLength" : "11:45", "NautTwilightEnd" : "20:41", "NautTwilightStart" : "06:41", "ServerTime" : "2023-09-30 13:27:30", "SunAtSouth" : "13:41", "Sunrise" : "07:49", "Sunset" : "19:33", "app_version" : "2023.2", "status" : "OK", "title" : "Devices" }
and output for idx 849 (temperature sensor)
{ "ActTime" : 1696073412, "AstrTwilightEnd" : "21:19", "AstrTwilightStart" : "06:03", "CivTwilightEnd" : "20:05", "CivTwilightStart" : "07:17", "DayLength" : "11:45", "NautTwilightEnd" : "20:41", "NautTwilightStart" : "06:41", "ServerTime" : "2023-09-30 13:30:12", "SunAtSouth" : "13:41", "Sunrise" : "07:49", "Sunset" : "19:33", "app_version" : "2023.2", "status" : "OK", "title" : "Devices" }
(Also, could be because you’re running as a child bridge. Never managed to get child bridge setup working properly & showing all devices here, so can’t really vouch for it’s use 🤷🏼… and your MQTT config looks to be invalid so expect non-instant updates etc)
About the child bridge comment:
And about MQTT config:
Thanks for your help!
That’s incomplete… note the level of output at the wiki link = includes result:[] containing hardware type, subtype, switch type, current values etc.
Check your Domoticz security settings due to changes in v2023.x. Does Domoticz user you’re connecting as from homebridge-edomoticz have access to those devices etc within Domoticz > Users?
All probably down to the stricter security in new Domoticz.
Regarding the security settings:
Regarding the output missing HW info etc:
It is the same they mentioned: From Stable 2023.2: /json.htm?type=command¶m=getdevices&rid=IDX
Strange let me look to find another command with more details
I think you now HAVE to auth as user. Try adding your local ip range or specific local ip addresses of both the Pi and your current device that you’re hitting API from to exemption list (192.168.0.x probably) as well as the loop back address, then see if you get result: [] back from the API. If so, restart homebridge, see if devices appear.
OR connect with auth credentials.
Tried that already :(
Initially the exemption list was like this: 127.0.0.1 Yesterday when I was troubleshooting this issue I changed it to this to be on the safe side: 127.0.0.;192.168.1.
(FYI my local NW is 192.168.1.x vs 192.168.0.x)
I have devices coming from different HW declared in Domoticz (RFXCom, Xiaomi gateway etc). All devices seem to appear fine in Homebridge except for the ones coming from 1 type of HW which is DeconZ (Zigbee Conbee II key) If it was a permission issue the problem should be more general with the exempted NW. Shouldn't it?
Yes that's what I did (with a wildcard though after the last "."). The wild card is not printing when I write here
If no result element, it’s either auth issue, or the Deconz device type in Domoticz isn’t outputting correctly.
Do you get result element for different devices from API when you use same method?
Ok we are on something here.
I just tested the API output for a working device and I have much more details
{ "ActTime" : 1696075346, "AstrTwilightEnd" : "21:19", "AstrTwilightStart" : "06:03", "CivTwilightEnd" : "20:05", "CivTwilightStart" : "07:17", "DayLength" : "11:45", "NautTwilightEnd" : "20:41", "NautTwilightStart" : "06:41", "ServerTime" : "2023-09-30 14:02:26", "SunAtSouth" : "13:41", "Sunrise" : "07:49", "Sunset" : "19:33", "app_version" : "2023.2", "result" : [ { "AddjMulti" : 1.0, "AddjMulti2" : 1.0, "AddjValue" : 0.0, "AddjValue2" : 0.0, "BatteryLevel" : 255, "CustomImage" : 8, "Data" : "Off", "Description" : "", "DimmerType" : "abs", "Favorite" : 0, "HardwareDisabled" : false, "HardwareID" : 5, "HardwareName" : "Xiaomi Gateway", "HardwareType" : "Xiaomi Gateway", "HardwareTypeVal" : 95, "HaveDimmer" : true, "HaveGroupCmd" : true, "HaveTimeout" : false, "ID" : "8CF68748", "Image" : "Speaker", "IsSubDevice" : false, "LastUpdate" : "2021-11-10 13:41:27", "Level" : 10, "LevelInt" : 10, "MaxDimLevel" : 100, "Name" : "Gateway Vol", "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" : 7, "Used" : 1, "UsedByCamera" : false, "XOffset" : "0", "YOffset" : "0", "idx" : "430" } ], "status" : "OK", "title" : "Devices" }
Right - says to me it’s either the Hardware plugin for that device over in Domoticz… OR, over on the default user in Domoticz, those devices aren’t included yet when you hit “set devices” for that user at /#/Users
I don't have a default user... (since initial installation I removed the "admin" user that comes by default with domoticz for security reasons). I only use admins I created manually. Those admins don't have specific devices declared, they have access to all devices.
Let me try to force adding all devices for all users (because not sure which one would be considered as default since I am the one who created all of them) and see whether there is a change in behaviour
Well, let’s rule it out altogether. Make an admin user with all devices for homebridge-eDomoticz to use, and sling user:pass@ in front of IP over in homebridge-edomoticz config…
Thank you so much!!! It is working now! I added all devices to all users and it worked! I see the devices that were missing. I don't know which user Homebridge was picking by default but it is fixed :)
Probably a change in behaviour in the new Domoticz version as you mentioned.
Hello,
After upgrading Domoticz and homebridge-edomoticz, a few accessories don't show up anymore in Homebridge (I was using them for years).
Current versions:
Tried the following but didn't get any positive results:
The common point between all missing devices is that they are all coming from the same hardware in Domoticz which is a ConbeeII Zigbee device (added in Domoticz through DeconZ plugin). The missing devices are a mix of temperature sensors and power plug switches.
Log Below is the log. It doesn't show any problem with synchronisation:
Output of /json.htm?type=command¶m=devices_list from domoticz
Any help will be much appreciated as I ran out of ideas :( (I am suspecting a code change in Domoticz that is not compatible anymore with homebridge-edomoticz)
Thanks