After searching for a video doorbell for quite some time I finally settled for a Reolink Video Doorbell Wifi. There is a good Python module available to interact with the camera, reolink-aio, created by starkillerOG.
I have created a Domoticz plugin, Domoticz Reolink, to show information from the camera. When creating the plugin I used code and inspiration from Zigbee for Domoticz, mainly to learn more about using asyncio in Domoticz.
I just tried it with the latest beta and latest reolink_aio and it seems to work.
But I am thinking about changing one of the behaviors. Currently I get a motion-signal "on" from the doorbell and immediately after an "off". It might be better to have the “on” for 30 seconds or something and then return to “off”.
I am sorry, the name is likely confusing. I'll look into that.
The webhook is created in the camera by the plugin. Thus the Webhook host is the (from the camera) reachable ip-address of the Domoticz server.
In my setup I use 10.0.0.* where my door camera is on 10.0.0.9 and my Domoticz server is 10.0.0.2 (the webhook host). Note that you cannot use 127.0.0.1 (since that is not reachable by the camera).
waltervl wrote: ↑Thursday 28 September 2023 19:28
Seems that the python module reolink_aio is not installed or not installed correctly. Try to install with sudo.if you already had it installed.
pi@domoticzVM:~/domoticz/plugins/domoticz_reolink$ sudo git pull
[sudo] wachtwoord voor pi:
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint:
hint: git config pull.rebase false # merge (the default strategy)
hint: git config pull.rebase true # rebase
hint: git config pull.ff only # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 3 (delta 2), reused 3 (delta 2), pack-reused 0
Unpacking objects: 100% (3/3), 313 bytes | 313.00 KiB/s, done.
From https://github.com/j-b-n/domoticz_reolink
b7a0bd4..2b89c27 main -> origin/main
Updating b7a0bd4..2b89c27
Fast-forward
plugin.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
When I go to the plugin repository there is a prerequisite mentioned for reolink_aio. That means you have to install it first before you can use the plugin.
So use command
pip3 install reolink-aio
If it still gives the same error use
sudo pip3 install reolink-aio
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
waltervl wrote: ↑Thursday 28 September 2023 19:58
When I go to the plugin repository there is a prerequisite mentioned for reolink_aio. That means you have to install it first before you can use the plugin.
So use command
pip3 install reolink-aio
If it still gives the same error use
sudo pip3 install reolink-aio
Yes, sudo pip3 install reolink-aio did it.
After install sudo service domoticz stop and start.
Only it is not working. Maybe settings are not okay in domoticz or doorbell?
I have 3 new devices, motion person, motion and doorbell.
Update: Domoticz stopped working. Restored backup, and removed the plugin.
2023-09-28 20:08:55.061 Reolink: Acquiring GIL for 'onHeartbeatCallback'
2023-09-28 20:08:55.061 Reolink: Calling message handler 'onHeartbeat' on 'module' type object.
2023-09-28 20:08:55.061 Reolink: camera_thread dead - restart!
2023-09-28 20:08:55.062 Reolink: Acquiring GIL for 'onHeartbeatCallback'
2023-09-28 20:09:25.044 Reolink: Pushing 'onHeartbeatCallback' on to queue
2023-09-28 20:09:25.094 Reolink: Processing 'onHeartbeatCallback' message
2023-09-28 20:09:25.094 Reolink: Acquiring GIL for 'onHeartbeatCallback'
2023-09-28 20:09:25.094 Reolink: Calling message handler 'onHeartbeat' on 'module' type object.
2023-09-28 20:09:25.094 Reolink: camera_thread dead - restart!
2023-09-28 20:09:25.094 Reolink: Acquiring GIL for 'onHeartbeatCallback'
2024-01-07 05:10:45.174 Error: Reolink Parking: Failed to parse message from camera as XML! Length: 1381
2024-01-07 05:10:45.174 Error: Reolink Parking: Failed to parse message from camera as XML! Length: 1759
2024-01-07 11:45:10.557 Error: Reolink Jardin: Failed to parse message from camera as XML! Length: 2801
2024-01-07 11:45:10.558 Error: Reolink Jardin: Failed to parse message from camera as XML! Length: 4714
Hi all,
I have installed the Reolink plugin, i am using a frontdoor videocamera connected via POE. The problem is dat the plugin is not making new devices.
First i had to modify plugin.py, line 134. I changed 127.0.0.1 in the ip adress of the domoticz pi. I left the port on 8989.
If i restart Domoticz the plugin starts without errors (i think) but it doesn't make new devices. What can be the problem?
Attachments
Reolink_settings_domoticz.jpg (25.19 KiB) Viewed 2189 times
Reolink_plugin_py.png (11.32 KiB) Viewed 2189 times
Reolink_domoticz_log_1.png (58.11 KiB) Viewed 2189 times
dyter wrote: ↑Saturday 27 January 2024 18:13
You need accept new devices in setup of domoticz
Thanks.
I tried, accept new devices (was already set green but still pushed the button for 5 minutes) did not help. In this 5 minutes i restarted the plugin also. No succes....
In the latest version of the plugin (do an update) I have changed to python3 and changed from 127.0.0.1 to self.webhook_host.
@Rik60 - You should find the devices under the Devices tab. If Domoticz can not create the devices the error message is "Unit creation failed, Domoticz settings prevent accepting new devices."
The logs you have posted is the complete log from the plugin?
You should see something like this:
2024-01-28 15:37:34.254 Reo: Worker thread started.
2024-01-28 15:37:34.254 Status: Reo: Entering work loop.
2024-01-28 15:37:34.255 Status: Reo: Started.
2024-01-28 15:37:34.662 Status: Reo: Initialized version 0.0.2, author 'jbn'
2024-01-28 15:37:41.592 Reo: Camera Name : Doorbell
2024-01-28 15:37:41.593 Reo: Camera Model : Reolink Video Doorbell WiFi
2024-01-28 15:37:41.593 Reo: Camera Hardware version : DB_566128M5MP_W
2024-01-28 15:37:41.593 Reo: Camera Software version : v3.0.0.2555_23080700
2024-01-28 15:37:41.593 Reo: Camera Mac_address : ##############
2024-01-28 15:37:41.593 Reo: Camera Is doorbell : True
2024-01-28 15:37:41.593 Reo: Camera AI supported : True
2024-01-28 15:37:41.593 Reo: Camera AI types : ['people']
JBN wrote: ↑Sunday 28 January 2024 15:40
In the latest version of the plugin (do an update) I have changed to python3 and changed from 127.0.0.1 to self.webhook_host.
@Rik60 - You should find the devices under the Devices tab. If Domoticz can not create the devices the error message is "Unit creation failed, Domoticz settings prevent accepting new devices."
The logs you have posted is the complete log from the plugin?
You should see something like this:
2024-01-28 15:37:34.254 Reo: Worker thread started.
2024-01-28 15:37:34.254 Status: Reo: Entering work loop.
2024-01-28 15:37:34.255 Status: Reo: Started.
2024-01-28 15:37:34.662 Status: Reo: Initialized version 0.0.2, author 'jbn'
2024-01-28 15:37:41.592 Reo: Camera Name : Doorbell
2024-01-28 15:37:41.593 Reo: Camera Model : Reolink Video Doorbell WiFi
2024-01-28 15:37:41.593 Reo: Camera Hardware version : DB_566128M5MP_W
2024-01-28 15:37:41.593 Reo: Camera Software version : v3.0.0.2555_23080700
2024-01-28 15:37:41.593 Reo: Camera Mac_address : ##############
2024-01-28 15:37:41.593 Reo: Camera Is doorbell : True
2024-01-28 15:37:41.593 Reo: Camera AI supported : True
2024-01-28 15:37:41.593 Reo: Camera AI types : ['people']
Thanks.
I have update the plugin and changed some setting in the camera. It seems to work now, there is one device created, a motion sensor (switch). How many devices should be created, just one or 1 switch motion (motion), 1 switch motion (person) and 1 switch doorbell?
Thanks for your help