@rajan wrote:
I want to read battery state level from my Hue motion sensor (image attached).
The entity-id is ‘binary_sensor.vardagsrum_sensor_motion’
I dont get it working … here is my code:- platform: template sensors: vardagsrum_sensor_battery: entity_id: binary_sensor.vardagsrum_sensor_motion friendly_name: 'Vardagsrum motion sensor batteri' value_template: '{{state_attr("binary_sensor.vardagsrum_sensor_motion", "battery")}}' unit_of_measurement: percent![Battery State|368x286]
Posts: 2
Participants: 1