Hello. I have two types of water leakage sensors that operate on batteries.
I flashed a wired sensor on OpenBK a long time ago, but the battery runs out very quickly. My knowledge was not enough to configure it correctly so that it would go into energy-saving mode.
I read on the forum that this mode is still in development. Please tell me how things are going with this now?
I'm not sure if I set the settings correctly, but I got it to be triggered by a short circuit and give an alert.
Device configuration, as extracted from Tuya: - Button (channel 0) on P24 + - Status LED on P26 + - PIR sensor on P8 - Battery Relay on P14 + - Battery Max Voltage: 3000 - Battery Min Voltage: 2600 - Battery ADC on P23 + Device seems to use Battery Driver.
Help me put this in the device. It's not possible to import through the import tab.
Now I have it configured like this: Но я по прежнему не понимаю куда нужно добавить: - Battery Max Voltage: 3000 - Battery Min Voltage: 2600 And how to set up energy saving mode
By trial method, there is such a configuration. The sensor falls asleep and wakes up when the contacts close. When it falls asleep, it does not transmit any information via MQTT even after some time. How to monitor battery charge? I also can't figure out the battery voltage. The battery has a voltage of 2.91v, but in the web interface of the sensor, it is 3,315 mV, which is much more. I also don't understand Home Assistant, the sensor displays the status as "on", and when the sensor is triggered, it says "off".
For the inverted problem in Home Assistant, you could try ticking 'Flag 42 [DoorSensor] Invert state'.
It should now be the right way round in the Sensor card in the MQTT device screen in HA.
However, this worked for me with a sensor without a built in alarm. As yours has a beeper, it may well sound continuously in which case maybe changing Pin 7 'Rel' to 'Rel_n' in addition to enabling Flag 42 might do it.