Unifi Protect Water Leak Sensor Dectection

Ubiquiti UFP-SENSE Protect Sensors support water leak detection with a Water Leak Adapter provided by Ubiquiti:

Since Unifi Protect is already included in HA OS Core, can you please add the Water Leak Detection entity?

Thanks!

Thanks Angellus. I am working on it but having trouble getting unifi-protect command to run in VS (this is new to me unfortunately). Keep getting this error code but I will keep at it:

  • Executing task: unifi-protect generate-sample-data -w 30

/bin/bash: line 1: unifi-protect: command not found

  • The terminal process “/bin/bash ‘-c’, 'unifi-protect generate-sample-data -w 30 '” failed to launch (exit code: 127).
  • Terminal will be reused by tasks, press any key to close it.

Angellus, I think this may be the problem (but I don’t know why). I believe I have everything installed correctly but creating the dev container, this error message appears at the end of the log:

Running the postCreateCommand from devcontainer.json…

[22723 ms] Start: Run in container: /bin/sh -c /workspaces/pyunifiprotect/.bin/install-requirements && source /home/python/.bashrc
/bin/sh: 1: /workspaces/pyunifiprotect/.bin/install-requirements: not found
[24228 ms] postCreateCommand failed with exit code 127. Skipping any further user-provided commands.
Done. Press any key to close the terminal.

I think that is why unifi-protect is a unrecognized command. Any suggestions here? Thanks.

Ok I think I was able to collect the sample data finally.

Where should I send you the zip file?

Thanks!

Any update on this? Willing to provide additional data if needed.