I have done a fix for OpenHab 3.x support and fixed the renamed recording value.
Let me know if this works.
You might have to remove old cameras and nvrs and readd them. Make sure to use the same id for the nvr, and then you should be able to keep your old items.
I sometimes have the issue, that a person ringing the doorbell does not get detected. From looking at my logs the “IsRinging” Event does not fire, but the “LastRingTime” date changes to a newer value.
2021-12-07 15:20:46.552 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'FrontDoorCamIsRinging' changed from OFF to ON
2021-12-07 15:20:48.423 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'FrontDoorCamRingThumbnail' changed from raw type (image/jpeg): 25074 bytes to raw type (image/jpeg): 23403 bytes
2021-12-07 15:20:53.932 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'FrontDoorCamIsRinging' changed from ON to OFF
2021-12-07 15:21:24.060 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'FrontDoorCamIsRinging' changed from OFF to ON
2021-12-07 15:21:26.155 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'FrontDoorCamRingThumbnail' changed from raw type (image/jpeg): 23403 bytes to raw type (image/jpeg): 25917 bytes
2021-12-07 15:21:28.925 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'FrontDoorCamIsRinging' changed from ON to OFF
2021-12-07 15:21:32.690 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'FrontDoorCamLastRing' changed from 2021-12-07T12:33:18.397+0100 to 2021-12-07T15:21:23.439+0100
2021-12-07 16:37:15.418 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'FrontDoorCamRingThumbnail' changed from raw type (image/jpeg): 25917 bytes to raw type (image/jpeg): 22971 bytes
2021-12-07 16:37:15.419 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'FrontDoorCamIsRinging' changed from OFF to ON
2021-12-07 16:37:18.730 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'FrontDoorCamIsRinging' changed from ON to OFF
2021-12-07 16:37:39.920 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'FrontDoorCamLastRing' changed from 2021-12-07T15:21:23.439+0100 to 2021-12-07T16:37:13.188+0100
2021-12-07 17:28:36.797 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'FrontDoorCamIsRinging' changed from OFF to ON
2021-12-07 17:28:38.791 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'FrontDoorCamRingThumbnail' changed from raw type (image/jpeg): 22971 bytes to raw type (image/jpeg): 10704 bytes
2021-12-07 17:28:41.817 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'FrontDoorCamIsRinging' changed from ON to OFF
2021-12-07 17:28:44.158 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'FrontDoorCamLastRing' changed from 2021-12-07T16:37:13.188+0100 to 2021-12-07T17:28:36.520+0100
2021-12-08 10:58:21.507 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'FrontDoorCamLastRing' changed from 2021-12-07T17:28:36.520+0100 to 2021-12-08T10:58:18.681+0100
here the corresponding openhab.log entries
2021-12-08 10:58:16.301 [ERROR] [al.thing.UniFiProtectNvrThingHandler] - Failed to get event, ignoring: UniFiProtectAction [action=add, modelKey=event, id=61b081b800183403e700186b]
2021-12-08 10:58:16.760 [ERROR] [al.thing.UniFiProtectNvrThingHandler] - Failed to get event, ignoring: UniFiProtectAction [action=add, modelKey=event, id=61b081b802023403e700186c]
2021-12-08 10:58:18.948 [ERROR] [al.thing.UniFiProtectNvrThingHandler] - Failed to get event, ignoring: UniFiProtectAction [action=add, modelKey=event, id=61b081ba02ad3403e700186d]
2021-12-08 10:58:21.959 [WARN ] [otect.internal.model.UniFiProtectNvr] - Heatmap request resulted in a error size image
2021-12-08 10:58:21.989 [WARN ] [otect.internal.model.UniFiProtectNvr] - Heatmap request resulted in a error size image
2021-12-08 10:58:21.990 [ERROR] [l.thing.UniFiProtectBaseThingHandler] - Failed to set heatmap, event type not present: UniFiProtectEvent [type=motion, start=1638957492944, end=null, camera=6109692702802b03e70003ed, score=81, id=61b081b800183403e700186b, metadata=MetaData [objectType=null, objectCoords=null, objectConfidence=null], modelKey=event, partition=null, thumbnail=e-61b081b800183403e700186b, heatmap=e-61b081b800183403e700186b, smartDetectTypes=[], smartDetectEvents=[61b081b802023403e700186c]] or invalid heatmap: null
The last ring at 10:58:18 this morning just came through as a ItemStateChangedEvent for Last Ring. The IsRinging Change from OFF → ON and back is not there. It seems there were some events which could not get handled.
The reason why lastRingTime is updated is basically because that info originates from the boostrap.json, which is pulled every minute. The doorbell notification originates from the websocket connection notification. My guess is that some notifications over the websocket is not working correctly for some reason.
I have noticed this myself with my G4 Doorbell. Have you tried the beta2 version?
I have not seen it since i switched and upgraded UniFi Protect to 1.20.0.
Let me know if it’s still an issue on 1.20.0 with the beta2 binding, meanwhile, I’ll also see if it’s an issue for me.
After a very first check, beta2 seems to solve the issues! Cam’s channels are updated and NVR does not lose the connection after adding a cam / channel. I will setup all channels and all cams at the weekend and come back to you if any problem will occur.
Currently i have a small problem. The bridge shows online and my G4 Doorbell as well, but i do not get any Data from the doorbell. All entries are NULL
There has been several updates, I would suggest you delete all cameras and the nvr. Then readd them. If you use the same id on the NVR your items should not be affected. Also cameras should be discovered if you press scan, so should be fairly easy.
Let me know if you still have problems after readding them.
I tried to get some snapshots, but something ist not right with the path
2021-12-17 19:15:37.171 [ERROR] [ifiprotect.internal.UniFiProtectUtil] - Failed to write to file: /static/images/surveillance/6148af730153b903e7001839--snap.jpg , for camera id: 6148af730153b903e7001839
Unfortunately is see no reason why the write should fail. Another question is: What is the difference between snapshot and anonymous snapshot
Have you set up anon snapshot according to instructions in the first message? You need to approve it per camera in the settings on the actual camera. Otherwise to you see any error messages? You could try and enable debug for the binding to see if you get some more information.