Closed backcountrymountains closed 5 years ago
The sensor values are not interval based at the moment. Currently a sensor reports its value when it changes in realtime, but an update is only sent if the integer value passes threshold of a (hardcoded) 100. (which is 0.1 degree/%). We can probably make these thresholds configurable.
That would be great! My humidity sensor seems nuts. Not sure what to do about that. Setting the threshold to 1000 would help stop all the updates.
Added this support in v1.2
Awesome, thanks!
Would it be possible to change or set the MQTT update interval for the temperature and humidity sensors? The humidity sensor seems to be sending a lot of updates to my MQTT broker and I'd like to throttle it a bit. Does your program send out an MQTT message each time the sensor updates? I know the relay humidity sensor can be a bit weird and maybe that is the core issue that I'm having.
Anyway, I'd super like an update interval option, but I have no idea how to do it myself.
Thanks for the great program! It has allowed me to have complete local control of my HA system.
`2019-05-13 22:15:38 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on relay/sensors/humidity: b'53.181000'
2019-05-13 22:15:43 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on relay/sensors/humidity: b'53.286999'
2019-05-13 22:15:47 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on relay/sensors/humidity: b'53.393002'
2019-05-13 22:15:53 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on relay/sensors/humidity: b'53.498001'
2019-05-13 22:15:59 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on relay/sensors/humidity: b'53.612999'`