kevinvincent / ha-wyzesense

A Home Assistant Component to interface with the WYZE Sense hub and sensor system
368 stars 97 forks source link

DIY Water Sensor - Reverse Status Help #45

Open Vendo232 opened 4 years ago

Vendo232 commented 4 years ago

Hi I have modified the DOOR sensor based on this video to create a simple water sensor.

The problem I have is that it leaves the sensor OPEN until it gets wet when the water will CLOSE the circuit. Leaving the sensor OPEN all the time probably drains the battery and probably pollutes the RF. Any idea how to reverse status to show Water Sensor Closed?

Capt1212121ure

tried to do this in Configuration,yaml but it did not help as it will keep showing OFF after restart and when Water closes the circuit.

binary_sensor:

https://www.youtube.com/watch?v=7gNqCTPAiP0&lc=z22xhxsjhkqtyvrao04t1aokgdlo0prruyzaqvg24spqbk0h00410.1571340039618071

jheizer commented 4 years ago

I already have a PR #40 to do this.

Vendo232 commented 4 years ago

thank you Sir, must say your Wyze integration is beyond professional!

PtolemyIV commented 4 years ago

Seconded! I had to the permissions fix for HA on raspbian but that was clearly stated and everything else has worked super smoothly! To my pleasant surprise both wyze cams (one fixed, one ptz) still work as before.. Only issue I get with wyze is they seem to drop off the rtsp stream fairly frequently and need rebooting but that isn't anything to do with you!

On Sun, 20 Oct 2019, 01:47 Vendo232, notifications@github.com wrote:

thank you Sir, must say your Wyze integration is beyond professional!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kevinvincent/ha-wyzesense/issues/45?email_source=notifications&email_token=AAEEYZ4V3GQATGUOXNHYDGLQPOTBPA5CNFSM4JB6P4V2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBX7U3Y#issuecomment-544209519, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEEYZ3ICXTT45LW62475ZLQPOTBPANCNFSM4JB6P4VQ .

jheizer commented 4 years ago

Updated PR #65

jamman9000 commented 4 years ago

Does anyone have experience or evidence capturing sensor data? The Read Me says the motion sensors will report an "on" state every 40 seconds as long as motion is still detected. But from what I understand about the door (reed switch) sensors they only send an RF signal upon a magnet getting close enough to make the reed switch make contact or moving far enough away for the switch to disconnect. Same way other RF sensors that work with the Sonoff RF Bridge work.

I don't think you have to worry about battery life on your water sensor, but you'll want to customize the entity using a value template to swap the indication based on what comes in. You'll need to look around the customize and template documentation on the HA website.