Python Plugin: Reolink

Python and python framework

Moderator: leecollings

JBN
Posts: 40
Joined: Saturday 13 July 2013 8:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sweden
Contact:

Re: Python Plugin: Reolink

Post by JBN »

Exactly, three sensors are created for a doorbell.

Ah, I seem to have removed the checks for some of the needed settings. I will readd them in a coming version, sorry for the inconvenience.
Rik60
Posts: 84
Joined: Sunday 25 June 2023 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Location: The Netherlands
Contact:

Re: Python Plugin: Reolink

Post by Rik60 »

JBN wrote: Monday 29 January 2024 22:19 Exactly, three sensors are created for a doorbell.

Ah, I seem to have removed the checks for some of the needed settings. I will readd them in a coming version, sorry for the inconvenience.
I saw that there was an update, so i have updated the plugin. I still have 1 sensor insteat of 3. Is that correct?
JBN
Posts: 40
Joined: Saturday 13 July 2013 8:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sweden
Contact:

Re: Python Plugin: Reolink

Post by JBN »

Since you have a doorbell cam you should see 3. I assume you have checked the Devices-tab?

If not, what happens if you remove and then re-add the plugin?
Rik60
Posts: 84
Joined: Sunday 25 June 2023 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Location: The Netherlands
Contact:

Re: Python Plugin: Reolink

Post by Rik60 »

I have removed the plugin and reinstalled. Restarted domoticz service, rebooted the pi. Updated Domoticz to the latest version (2024.3 to 2024.4) Domoticz is accepting new devices. The only device that is created is the motion sensor. There are no other created devices in the device list
Attachments
Schermafbeelding 2024-02-01 104254.png
Schermafbeelding 2024-02-01 104254.png (45.28 KiB) Viewed 1829 times
JBN
Posts: 40
Joined: Saturday 13 July 2013 8:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sweden
Contact:

Re: Python Plugin: Reolink

Post by JBN »

Rik60 wrote: Thursday 01 February 2024 11:55 I have removed the plugin and reinstalled. Restarted domoticz service, rebooted the pi. Updated Domoticz to the latest version (2024.3 to 2024.4) Domoticz is accepting new devices. The only device that is created is the motion sensor. There are no other created devices in the device list
I found a bug. Hopefully it is fixed now! So update and try again.
Rik60
Posts: 84
Joined: Sunday 25 June 2023 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Location: The Netherlands
Contact:

Re: Python Plugin: Reolink

Post by Rik60 »

JBN wrote: Thursday 01 February 2024 20:35
Rik60 wrote: Thursday 01 February 2024 11:55 I have removed the plugin and reinstalled. Restarted domoticz service, rebooted the pi. Updated Domoticz to the latest version (2024.3 to 2024.4) Domoticz is accepting new devices. The only device that is created is the motion sensor. There are no other created devices in the device list
I found a bug. Hopefully it is fixed now! So update and try again.
Thanks, i did the update and have 3 devices now. But the Person and Doorbell stay off if a person is detected and the doorbell button is pressed. I do receive the Reolink messages on my phone, so the doorbell did detect it.
Thanks sofar for your time
Rik60
Posts: 84
Joined: Sunday 25 June 2023 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Location: The Netherlands
Contact:

Re: Python Plugin: Reolink

Post by Rik60 »

Still have problems with 2 out of 3 devices. Only the Motion is working, the two others not.
If i look in the data received from the video doorbell it is detecting Motion, PeopleDetect and Visitor but the plugin is only reacting on Motion? Is the plugin (reolink_utils -> rule) only responding on the first finding rule?
Attached is a textfile, 1 line received from the doorbell. I have split the line to make it more readable
Attachments
reolink_2.log
(5.42 KiB) Downloaded 63 times
JBN
Posts: 40
Joined: Saturday 13 July 2013 8:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sweden
Contact:

Re: Python Plugin: Reolink

Post by JBN »

Hi, I think I spotted the bug. It should be fixed in latest commit ie update the plugin.

I have used the XML-file from Rik60 as verification test and that message parses OK.
User avatar
dyter
Posts: 42
Joined: Thursday 08 February 2018 15:48
Target OS: NAS (Synology & others)
Domoticz version: 8841
Location: Lyon
Contact:

Re: Python Plugin: Reolink

Post by dyter »

Finaly, I update my synology to DVA1622 and AI reolink future is supported by this.
So I created directely rules webhook in Surveillance Station to domoticz
Thanks JBN for your time for this plugin
Domoticz v2024.1 on Synology Docker host, RFLink, ESPEasy wemos D1, Ecodevices, relays x8, dahua doorbell, reolink cameras ....
Rik60
Posts: 84
Joined: Sunday 25 June 2023 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Location: The Netherlands
Contact:

Re: Python Plugin: Reolink

Post by Rik60 »

I have tested the plugin after a new plugin install, it works fine now
Thanks
dorenberg
Posts: 111
Joined: Monday 22 June 2015 20:18
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10982
Location: Veghel, The Netherlands
Contact:

Re: Python Plugin: Reolink

Post by dorenberg »

Hi all, I hope you can help me. I am having issues with installing this plugin.

First attempt was on my 2021.1 Domoticz which has python 3.7.3. Installation not possible. Tried installing Python 3.9 but nothing.
Next attempt was a fresh Raspberry image (debian 12 bookwurm). Now on domoticz 2024.4 with Python 3.11.

Tried installing it, but nothing. Tried installing python 3.9, and still nothing. I am getting the following error.
Schermafbeelding 2024-05-07 182717.png
Schermafbeelding 2024-05-07 182717.png (26.72 KiB) Viewed 1473 times
Somebody?
JBN
Posts: 40
Joined: Saturday 13 July 2013 8:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sweden
Contact:

Re: Python Plugin: Reolink

Post by JBN »

Hi, I have not seen that error message before. A Google gave this link https://stackoverflow.com/questions/756 ... -use-pip-3

You can read that page to see if something helps. I think this might solve this issue (and seems at least easy to revert if not):
sudo mv /usr/lib/python3.11/EXTERNALLY-MANAGED /usr/lib/python3.11/EXTERNALLY-MANAGED.old
dorenberg
Posts: 111
Joined: Monday 22 June 2015 20:18
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10982
Location: Veghel, The Netherlands
Contact:

Re: Python Plugin: Reolink

Post by dorenberg »

Yes that worked. Everything installed and it works perfect. Thanks!!!
User avatar
waltervl
Posts: 5394
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Python Plugin: Reolink

Post by waltervl »

You can also use pip's argument --break-system-packages

Code: Select all

pip install package_name --break-system-packages
(From the same link)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
LoloB
Posts: 1
Joined: Monday 29 January 2024 14:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Reolink

Post by LoloB »

I have the camera E1 Outdoor Pro. Domoticz 2024.7.

I have the following errors:

2024-12-11 13:08:17.010 Status: Cam01Ext: Started.
2024-12-11 13:08:17.009 Status: Cam01Ext: Entering work loop.
2024-12-11 13:08:17.232 Status: Cam01Ext: Initialized version 0.0.2, author 'jbn'
2024-12-11 13:08:20.040 Error: Cam01Ext: Call to function 'onMessage' failed, exception details:
2024-12-11 13:08:20.056 Error: Cam01Ext: Traceback (most recent call last):
2024-12-11 13:08:20.056 Error: Cam01Ext: File "/home/pi/domoticz/plugins/domoticz_reolink/plugin.py", line 343, in parse_json_message
2024-12-11 13:08:20.056 Error: Cam01Ext: self.camera_startup(json_obj)
2024-12-11 13:08:20.056 Error: Cam01Ext: File "/home/pi/domoticz/plugins/domoticz_reolink/plugin.py", line 160, in camera_startup
2024-12-11 13:08:20.056 Error: Cam01Ext: create_device(self.DEVICENAME[_device], self.CAMERADEVICES[self.DEVICENAME[_device]])
2024-12-11 13:08:20.056 Error: Cam01Ext: ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-11 13:08:20.056 Error: Cam01Ext: KeyError: 'Animal'
2024-12-11 13:08:20.056 Error: Cam01Ext:
2024-12-11 13:08:20.056 Error: Cam01Ext: During handling of the above exception, another exception occurred:
2024-12-11 13:08:20.056 Error: Cam01Ext:
2024-12-11 13:08:20.056 Error: Cam01Ext: Traceback (most recent call last):
2024-12-11 13:08:20.056 Error: Cam01Ext: File "/home/pi/domoticz/plugins/domoticz_reolink/plugin.py", line 442, in onMessage
2024-12-11 13:08:20.056 Error: Cam01Ext: _plugin.onMessage(Connection, Data)
2024-12-11 13:08:20.056 Error: Cam01Ext: File "/home/pi/domoticz/plugins/domoticz_reolink/plugin.py", line 373, in onMessage
2024-12-11 13:08:20.056 Error: Cam01Ext: self.parse_json_message(message["Data"])
2024-12-11 13:08:20.056 Error: Cam01Ext: File "/home/pi/domoticz/plugins/domoticz_reolink/plugin.py", line 357, in parse_json_message
2024-12-11 13:08:20.056 Error: Cam01Ext: Domoticz.Error("Logging error: " + str(err)
2024-12-11 13:08:20.056 Error: Cam01Ext: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-11 13:08:20.056 Error: Cam01Ext: TypeError: can only concatenate str (not "bytes") to str

could you help me?
JBN
Posts: 40
Joined: Saturday 13 July 2013 8:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sweden
Contact:

Re: Python Plugin: Reolink

Post by JBN »

Thanks for the report. None of my cameras have support for detection of animals (dog_cats). I hope I have fixed this now so please update the plugin.

If not please PM me with the logs of Domoticz for the startup of the plugin.
Jeaste
Posts: 1
Joined: Monday 16 December 2024 20:36
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Reolink

Post by Jeaste »

I have installed the plugin correctly (i think). The devices were added and i do not have any errors in my log. However when i push the button for the doorbell on my domoticz nothing happens, i would suspect the doorbell would rang?

I am using it with a Reolink POE Doorbell version 1. What could be the problem? I tried using the Onvif port and the HTTP port, but it makes no difference.
JBN
Posts: 40
Joined: Saturday 13 July 2013 8:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sweden
Contact:

Re: Python Plugin: Reolink

Post by JBN »

I am sorry for the late reply. I have done a slight change to the plugin and it might have caused issues. I have the same doorbell (it's the reason I wanted the module for myself).

What happens if you update the plugin and try again? If it doesn't work please PM me the logs from the module and we can try to find the solution together.
dorenberg
Posts: 111
Joined: Monday 22 June 2015 20:18
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10982
Location: Veghel, The Netherlands
Contact:

Re: Python Plugin: Reolink

Post by dorenberg »

It seems that I have the same issue since begin December. Push notifications via Domoticz on the doorbell do not work anymore. Motion is still detected.
JBN
Posts: 40
Joined: Saturday 13 July 2013 8:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sweden
Contact:

Re: Python Plugin: Reolink

Post by JBN »

Interesting, it works for me. But I am starting to think about reolink_aio version and Python version combinations.
You have Python 3.11 with a later reolink_aio version I guess?

But can you also restart your camera and see if that helps?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests