Skip to content

Instantly share code, notes, and snippets.

@eugenpirogoff
Forked from leowinterde/configuration.yaml
Created October 11, 2022 06:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eugenpirogoff/3ff78bd6b49518bded147fc450d06912 to your computer and use it in GitHub Desktop.
Save eugenpirogoff/3ff78bd6b49518bded147fc450d06912 to your computer and use it in GitHub Desktop.
Home Assistant - Poweropti / powerfox powermeter integration
sensor:
# Powerfox
- platform: rest
name: powerfox_meter_energy
# friendly_name: "Powerfox Stromzähler"
resource: https://backend.powerfox.energy/api/2.0/my/main/current?unit=kwh
username: !secret powerfox_username
password: !secret powerfox_password
json_attributes:
- A_Plus
- Watt
- Timestamp
value_template: "{{ value_json.A_Plus }}"
unit_of_measurement: kWh
# icon: mdi:transmission-tower-import
# last_reset: 2019-01-01T00:00:00+00:00
device_class: energy
state_class: total
- platform: template
sensors:
powerfox_meter_power:
friendly_name: "Powerfox Stromzähler power"
value_template: "{{ state_attr('sensor.powerfox_meter_energy', 'Watt') }}"
# icon: mdi:transmission-tower
device_class: power
unit_of_measurement: W
# state_class: measurement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment