Skip to content

Instantly share code, notes, and snippets.

@h4
Last active July 9, 2019 14:21
Show Gist options
  • Save h4/1d5a56844590c5e4305c546f3eb63483 to your computer and use it in GitHub Desktop.
Save h4/1d5a56844590c5e4305c546f3eb63483 to your computer and use it in GitHub Desktop.
sensor:
- platform: template
sensors:
livingroom_battery:
friendly_name: "Humid Battery Level"
value_template: "{{ states.sensor.humidity_158d00020ec3e3.attributes.battery_level }}"
unit_of_measurement: '%'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment