NRCHKB / node-red-contrib-unifi-os

Nodes to access UniFi data using endpoints and websockets
Apache License 2.0
27 stars 1 forks source link

V 1.1.0 #74

Closed marcus-j-davies closed 2 weeks ago

marcus-j-davies commented 3 months ago

Fixes : https://github.com/NRCHKB/node-red-contrib-unifi-os/issues/73 Fixes : https://github.com/NRCHKB/node-red-contrib-unifi-os/issues/72 Fixes : https://github.com/NRCHKB/node-red-contrib-unifi-os/issues/51

Shaquu commented 3 months ago

That is a lot of lines

marcus-j-davies commented 3 months ago

1 problem (on the Unifi end) I have discovered If multiple Lines are added to a camera, it does not show the state of them - they are still In the payload, but not their state.

When the camera has 1 Line : payload.metadata.linesStatus exists

When the camera has > 1 Line(s) : payload.metadata.linesStatus does not exists

Not sure we can fix that, as its a problem, in the original payload from Unifi

Screenshot 2024-06-26 at 16 22 37

The object is not an array, its a key:value pair where the key is the line ID for each line added. the event its self, does not tell you what line got hit, but the status allows you to see understand what line (status) was changed - but the status object is empty, when the cam has more then 1 line - so is annoying

@crxporter - any idea?

🤷

crxporter commented 3 months ago

Edit: I didn't read all the issues...

what line got hit

I haven't checked in a long, long time... But this might be expected. "a line got crossed" might be all we get. If you have multiple motion detect zones, I think only the first zone is expected to work?

crxporter commented 3 months ago

I don't even see anywhere on the official webpage or app where it will show which line was crossed... I've just made two lines in a single room and there's no apparent difference between the Unifi alerts to say which was crossed.

Email from Unifi says "a detection line" - no specifics:

Screenshot 2024-06-29 at 9 54 30 PM
jurajs5 commented 3 months ago

Something is better than nothing - push it. Hope in some new updates, we will get info which one was crossed.

marcus-j-davies commented 3 months ago

Beta available.

within the .node-red dir.

npm install node-red-contrib-unifi-os@dev
marcus-j-davies commented 2 weeks ago

@Supergiovane

Has your system been stable since your contriubtion (that I have merged into this PR)? I want to do a release maybe today - providing you have not needed to address any issues since?

Supergiovane commented 2 weeks ago

@Supergiovane

Has your system been stable since your contriubtion (that I have merged into this PR)? I want to do a release maybe today - providing you have not needed to address any issues since?

Hi Yes, rock solid.