Core: Unable to reset utility_meter unless specifying tariff.

Created on 11 Feb 2019  路  2Comments  路  Source: home-assistant/core

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.

utility_meter

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.

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aweb-01 picture aweb-01  路  3Comments

TheZoker picture TheZoker  路  3Comments

sogeniusio picture sogeniusio  路  3Comments

kirichkov picture kirichkov  路  3Comments

neonandu picture neonandu  路  3Comments