Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 102441

Battery state level from Hue motion sensor

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 102441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>