drinfernoo

Untitled

Apr 17th, 2021 (edited)
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.60 KB | None | 0 0
  1. type: 'custom:card-templater'
  2. entities:
  3.  - sensor.me_phone_battery_level
  4.   - sensor.wife_phone_battery_level
  5. card:
  6.   type: glance
  7.   entities:
  8.     - entity: person.me
  9.       name_template: >-
  10.         {{ states('sensor.my_phone_battery_level') }}%{{ '+' if
  11.         states('binary_sensor.my_phone_is_charging') == 'on' else '' }}
  12.     - entity: person.wife
  13.       name_template: >-
  14.         {{ states("sensor.wife_phone_battery_level") }}%{{ "+" if
  15.         states("binary_sensor.wife_phone_is_charging") == "on" else "" }}
  16.   show_state: true
  17.   show_icon: true
  18.   show_name: true
  19.   state_color: true
  20.  
Add Comment
Please, Sign In to add comment