-
-
Save eugenpirogoff/3ff78bd6b49518bded147fc450d06912 to your computer and use it in GitHub Desktop.
Home Assistant - Poweropti / powerfox powermeter integration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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