Last active
January 5, 2022 12:10
-
-
Save jeppestaerk/ffad22bfc7cc06300b853e56756d7c6e to your computer and use it in GitHub Desktop.
Smart Me configuration for Home Assistant
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
rest: | |
- authentication: basic | |
username: !secret smartme_username | |
password: !secret smartme_password | |
scan_interval: 30 | |
resource: !secret smartme_device_url | |
sensor: | |
- name: "EL aktuelt forbrug" #this shows the current use in kw | |
value_template: "{{ value_json.ActivePower }}" | |
unit_of_measurement: "kW" | |
device_class: "power" | |
state_class: "measurement" | |
json_attributes: | |
- "ActivePower" | |
- "Name" | |
- "Serial" | |
- "ActivePower" | |
- name: "EL Måler" #this shows the meter reading - from when the meter was installed | |
value_template: "{{ value_json.CounterReading}}" | |
unit_of_measurement: "kWh" | |
device_class: "energy" | |
state_class: "total" | |
json_attributes: | |
- "ActivePower" | |
- "Name" | |
- "Serial" | |
- "ActivePower" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment