Skip to content

Utility Meter Integration Displays Current Data but Not Tariff Data #105074

Description

@dbpage

The problem

I added Utility Meter YAML to my Home Assistant Configuration as described in the documentation. I added Automations to change Tariff to peak and offpeak as described in the documentation. The Integration correctly creates Hourly, Daily, and Monthly entities for Peak and Offpeak. The UI correctly displays the current energy kW (the entity created by the Utility Meter Integration without tariff), but the tariff entities remain at zero. The tariff entities correctly display "paused" and "collecting," but the corresponding UI displays remain at 0. Traces confirm that the Tariff changes between Peak and Offpeak. I created a Raw kW entity and it accumulates kW. No System Logs errors are noted. If you want me to enable Debug Logging, I can do that on request.
Triggers View
Traces View
Entity Daily Peak
Entity Daily Offpeak
Attributes Daily Peak
Attributes Daily Offpeak
Developer Tools View
Overview UI

What version of Home Assistant Core has the issue?

core-2023.11.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Utility Meter

Link to integration documentation on our website

https://www.home-assistant.io/integrations/utility_meter/

Diagnostics information

No response

Example YAML snippet

...
Configuration:
utility_meter:
  energy:
    name: Raw kW
    source: sensor.current_energy_usage
    cycle: monthly
    periodically_resetting: false
    unique_id: 2df070cc-2b4d-4984-b070-8c113002a244
  hourly_energy:
    name: Hourly kW
    source: sensor.current_energy_usage
    cycle: hourly
    tariffs:
      - "peak"
      - "offpeak"
    periodically_resetting: false
    unique_id: c339599a-47e6-4282-af64-0881283de93b
  daily_energy:
    name: Daily kW
    source: sensor.current_energy_usage
    cycle: daily
    tariffs:
      - "peak"
      - "offpeak"
    periodically_resetting: false
    unique_id: 4fca3604-6da0-458f-b52b-0f712c7d6ff0
  monthly_energy:
    name: Monthly kW
    source: sensor.current_energy_usage
    cycle: monthly
    tariffs:
      - "peak"
      - "offpeak" 
    periodically_resetting: false
    unique_id: c71ecb0b-17fb-41e9-bea2-a35df7434e27

Automation:
  alias: Change Utility tariff
  trigger:
  - platform: time
    at: "15:00:00"
    variables:
      tariff: "peak"
  - platform: time
    at: "19:00:00"
    variables:
      tariff: "offpeak"
  condition:
    condition: time
    weekday:
    - mon
    - tue
    - wed
    - thu
    - fri
  action:
  - service: select.select_option
    target:
      entity_id: select.daily_energy
    data:
      option: "{{ tariff }}"
  - service: select.select_option
    target:
      entity_id: select.monthly_energy
    data:
      option: "{{ tariff }}"
...

Anything in the logs that might be useful for us?

No errors in System Logs

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Fields

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions