battery-state-card
battery-state-card copied to clipboard
Problem with motion sensor state - percentage not requested
Describe what is wrong Dear all, I want use this card for see the motion sensors sort for detection, but for the motion sensors model RTCGQ02LM, I don’t see the state but the battery percentage. Can somebody help me?
YAML configuration
secondary_info: "{last_changed}"
icon: "{state|equals(off,mdi:motion-sensor-off)|equals(on,mdi:motion-sensor)}"
filter:
include:
- name: attributes.device_class
value: motion
- name: attributes.device_class
value: presence
sort:
- by: state
desc: true
- by: entity.last_changed
desc: true
colors:
steps:
- value: 0
color: inherit
- value: 1
color: var(--state-active-color)
unit: null
state_map:
- from: "off"
to: 0
display: Clear
- from: "on"
to: 1
display: Detected
collapse: 8
# paste your card configuration here
Screenshot
Version v 3.2.1