I am going to build a diy anemometer with an attached xiaomi door contact. I wanted to use it for my sprinkler system to not let it start, when it is too windy.
Giving it a little more thinking, the idea with the door sensor that is opening and closing with the rotating anemometer has some flaws… building the hardware is not the issue.
First of all, how long does the battery last, when I open and close it like 50 times a minute? Does that reduce the life span?
My second issue is, that each opening and closing an event gets triggered and logged in the log files. I dont want to have that traffic on my system. Is there any way to deactivate the logging for a single item? Or can like 50 events bundled and only 1 gets reported in the logs every couple minutes.
Thanks in advance!
EDIT: the sensor will be a xiaomi door contact that is connected via zigbee2mqtt. Another idea: can i maybe reduce the traffic already in the mqtt broker or so before it is used by openhab? Just an idea…