Home Assistant release with the issue:
0.87.1
Last working Home Assistant release (if known):
Unknown
Operating environment (Hass.io/Docker/Windows/etc.):
Debian venv
Component/platform:
https://www.home-assistant.io/components/utility_meter/
Description of problem:
It is not possible to call the utility_meter.reset
service on the sensors created by the component, this service can only be called on utility_meter.*
entities.
As these entities are only created when using the tariff config option, it is not possible to reset the meter unless specifying at least one tariff.
Problem-relevant configuration.yaml
entries and (fill out even if it seems unimportant):
# Not possible to reset.
utility_meter:
energy:
source: sensor.energy_in_kwh
cycle: monthly
# Can be reset
utility_meter:
energy:
source: sensor.energy_in_kwh
cycle: monthly
tariffs:
- option
Traceback (if applicable):
Additional information:
The sensors should either be changed to utility_meter type entities (preferred as they are part of that component) or it should be possible to call the utility_meter services on sensor entities.
It was never supposed to be exposed
The reset service should be exposed. The tariffs are not always needed.
In this case only the reset service should be available, the next tariff should not be available.
Most helpful comment
The reset service should be exposed. The tariffs are not always needed.
In this case only the reset service should be available, the next tariff should not be available.