Skip to content

Instantly share code, notes, and snippets.

@rdrouche
Created July 19, 2024 12:52
Show Gist options
  • Save rdrouche/1105d76e2f447eebb8fd499e7b7a018c to your computer and use it in GitHub Desktop.
Save rdrouche/1105d76e2f447eebb8fd499e7b7a018c to your computer and use it in GitHub Desktop.
Home Assistant - Template sensor sample
- sensor:
- name: "TV Conso"
unit_of_measurement: "kWh"
device_class: "energy"
state_class: "total_increasing"
state: "{{ states('sensor.pc_tv_today_energy') }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment