The new camera feature of Beta 13 for domoticz (eventhough very exciting to see) is causing issues. Ever since the update, the HomeHabit app would loose connection. I traced it down to the /json.htm?type=cameras HTTP request to the domoticz server. Per this issue on domoticz github https://github.com/domoticz/domoticz/issues/3059 the /json.htm?type=cameras call requires the user to have admin rights. My homehabit domoticz user does not have admin rights and I don’t want to grant it admin rights, so domoticz responds with 403 forbidden to this call, which causes homehabit to loose connection again.
Per the referenced issue above, latest domoticz Beta has a new JSON call /json.htm?type=cameras_user that can be accessed as a non-admin. I would think this would be the better JSON call to make.
Additionally, HomeHabit should probably not loose connection to the “normal” devices if the camera query gets a 403 Forbidden, and only not show any cameras.
Finally, I see that HomeHabit actually pulls in the source Snapshot URL out of domoticz, including camera credentials that maybe should not be visible to HomeHabit. Wouldn’t it make more sense to pull the snapshots out of Domoticz? HTTP call /camsnapshot.jpg?idx=1 provides the snapshot through Domoticz.