remne / p1ib

P1 Interface Bridge
Other
56 stars 5 forks source link

Force update of mqtt values in Home Assistant. #41

Open DavidLennartsson opened 1 week ago

DavidLennartsson commented 1 week ago

I have other sensors in home assistant that are calculated based on the current sensors in p1ib. Sometimes the amperage draw is almost static for some time, that means that the calculations won't be updated until the value actually changes.

Could you add a "force_update" option so that the values are updated in Home Assistant even if they values haven't changed? https://www.home-assistant.io/integrations/sensor.mqtt/