Skip to content

Instantly share code, notes, and snippets.

@jeppestaerk
Last active January 5, 2022 12:10
Show Gist options
  • Save jeppestaerk/ffad22bfc7cc06300b853e56756d7c6e to your computer and use it in GitHub Desktop.
Save jeppestaerk/ffad22bfc7cc06300b853e56756d7c6e to your computer and use it in GitHub Desktop.
Smart Me configuration for Home Assistant
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