starkillerOG / reolink_aio

Reolink NVR/camera API PyPI package
MIT License
79 stars 16 forks source link

Wifi Strength #26

Closed CrashM85 closed 1 year ago

CrashM85 commented 1 year ago

Hi, Do the wifi cameras allow you to query the current wifi strength and could that be exposed as a sensor entity to HA?

starkillerOG commented 1 year ago

@CrashM85 yes the signal strength can be queryed using GetWifiSignal, so yes it could be added as a sensor in HomeAssistant. Although the number will be between 0 and 255 which is a bit arbitrary, it is unfortunately not in dbm.

I will add it to my to do list of feature requests. However since I have many things to implement, this may take quite some time before I get to it.

If you appreciate the reolink integration and want to support its development, please consider sponsering the upstream library or purchase Reolink products through this affiliate link.

starkillerOG commented 1 year ago

This library now supports the wifi signal strength query with this commmit I made: https://github.com/starkillerOG/reolink_aio/commit/69097feb54d7a431480a24b8db03098ba98587fe

Soon I will add the nessesary code to Home Asssitant to add it as a sensor.

CrashM85 commented 1 year ago

Thanks! Have a coffee on me.

starkillerOG commented 1 year ago

Thanks!

starkillerOG commented 1 year ago

The wifi signal sensor will be available in HomeAssistant 2023.8 that will be released on August 2nd 2023.

Therefore I will close this issue now.

CrashM85 commented 1 year ago

Hi, Got the update for HA and it appears the wifi signal is just always "1" on a RLC-410W.

Edit, just noticed your comment about it going from 0-4 on your camera so i'm assuming it's the same with mine and i just have a crappy signal (i'm assuming the 0-4 is to populate one of those wifi bar symbols)

starkillerOG commented 1 year ago

Yes indeed, the number on my cam correspondends to the amount of wifi bars, 1 is probably a pretty bad signal