screekworkshop / screek-human-sensor

124 stars 28 forks source link

Filter to make log less chatty #24

Closed durd closed 1 month ago

durd commented 1 month ago

Hi,

I added filters for sensors and a lambda-filter for text-sensor.

The Distance sensor I'm not sure if you want to keep the sliding window and heartbeat filters. Maybe I'd say the sliding window but the sensor is chatty enough to not need the heartbeat imo. 0% delta I assume allows any difference as long as it's not the same. I didn't want to limit it with 1%, 1 or 0.1.

But please test first, I only have 5 days of experience with the F2 and you know more and why you had the filters you had :)

Thanks, David

screekworkshop commented 1 month ago

Thank you very much, we will test it in the next couple of days.

durd commented 1 month ago

I found the last part for the BH1750 sensor, I've lowered the logging level for just that sensor from DEBUG to INFO.

durd commented 1 month ago

Closing this because I found that Occupancy and clearance state was not being published to Home Assistant. I will have to look at this again. It's also for the best since a new version of the yaml will be published soon I hope.