Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###### BATTERY LEVELS
- - type: horizontal-stack
- cards:
- - type: vertical-stack
- cards:
- ### HEADER CARD
- - type: "custom:button-card"
- name: 'BATTERIES'
- template: header
- - type: vertical-stack
- cards:
- ### Combine all 3 into a single card
- - type: entities
- entities:
- ### battery attribute
- - type: custom:auto-entities
- card:
- type: custom:bar-card
- attribute: battery
- unit_of_measurement: "%"
- title_position: left
- padding: 0px 15px 3px 15px
- saturation: 50%
- columns: 1
- height: 15px
- width: 60%
- card_style:
- box-shadow: 0 0
- bar_style:
- border-radius: 20px
- indicator_style:
- border-radius: 20px
- severity:
- - value: 50
- color: '#bf4040'
- - value: 75
- color: '#bf9540'
- - value: 100
- color: '#40bf40'
- filter:
- include:
- - attributes:
- battery: ">= 0"
- options:
- type: custom:multiple-entity-row
- entity: this.entity_id
- toggle: false
- hide_state: true
- primary:
- entity: this.entity_id
- attribute: battery
- name: false
- unit: '%'
- ### battery_level attribute
- - type: custom:auto-entities
- card:
- type: custom:bar-card
- attribute: battery_level
- unit_of_measurement: "%"
- title_position: left
- padding: 0px 15px 3px 15px
- saturation: 50%
- columns: 1
- height: 15px
- width: 60%
- card_style:
- box-shadow: 0 0
- bar_style:
- border-radius: 20px
- indicator_style:
- border-radius: 20px
- severity:
- - value: 50
- color: '#bf4040'
- - value: 75
- color: '#bf9540'
- - value: 100
- color: '#40bf40'
- filter:
- include:
- - attributes:
- battery_level: ">= 0"
- options:
- type: custom:multiple-entity-row
- entity: this.entity_id
- toggle: false
- hide_state: true
- primary:
- entity: this.entity_id
- attribute: battery_level
- name: false
- unit: '%'
- exclude:
- - state: 'unavailable'
- - entity_id: sensor.battery_low
- - entity_id: 'sensor.batteryraw*'
- - entity_id: sensor.batterystatus
- - entity_id: sensor.findlays_room_light_level
- - entity_id: sensor.living_room_sensor_light_level
- - entity_id: sensor.dining_room_sensor_light_level
- - entity_id: binary_sensor.findlays_room_motion
- - entity_id: binary_sensor.living_room_sensor_motion
- - entity_id: binary_sensor.dining_room_sensor_motion
- - entity_id: zwave.door_front
- - entity_id: zwave.door_back
- - entity_id: zwave.door_side
- ### sensor.battery stright sensors
- - type: custom:auto-entities
- card:
- type: custom:bar-card
- unit_of_measurement: "%"
- title_position: left
- padding: 0px 15px 3px 15px
- saturation: 50%
- columns: 1
- height: 15px
- width: 60%
- card_style:
- box-shadow: 0 0
- bar_style:
- border-radius: 20px
- indicator_style:
- border-radius: 20px
- severity:
- - value: 50
- color: '#bf4040'
- - value: 75
- color: '#bf9540'
- - value: 100
- color: '#40bf40'
- filter:
- include:
- - entity_id: 'sensor.battery*'
- exclude:
- - state: 'unavailable'
- - entity_id: sensor.battery_low
- - entity_id: 'sensor.batteryraw*'
- - entity_id: sensor.batterystatus
- - entity_id: sensor.findlays_room_light_level
- - entity_id: sensor.living_room_sensor_light_level
- - entity_id: sensor.dining_room_sensor_light_level
- - entity_id: binary_sensor.findlays_room_motion
- - entity_id: binary_sensor.living_room_sensor_motion
- - entity_id: binary_sensor.dining_room_sensor_motion
- - entity_id: zwave.door_front
- - entity_id: zwave.door_back
- - entity_id: zwave.door_side
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement