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:
In the image you posted, it refers to it as battery level.
Go to Developer Tools > States, find binary_sensor.vardagsrum_sensor_motion, look in its attributes and confirm if it is named battery level (or maybe battery_level). Change your template to match the correct name:
Please mark my previous post with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has an accepted solution. It also helps others with a similar question to find the answer.
I just moved my Hue Motion Sensor from Hue to ZHA. I see a battery entity, but no battery level is being reported. Maybe it takes a while for first report?
it’s defnitely not an attribute of the sensor anymore.
It work well with a Philips Hue motion sensor. I don’t know what ZHA is so I can’t answer. I’m new to this and I’m using Home Assistant on a Raspberry Pi 3b.
I am very new here. Have been looking a lot on the net for 2 days and am now trying something.
I think I have the same problem, but I really don’t know where my mistake is.
please. See also attachment.
battery_levels is an invalid domain name (sensor, light, switch, etc are all domain names).
In your configuration.yaml file, look for a domain name called sensor: because that’s where you should put all sensor definitions including the Template Sensor you just created.
If it doesn’t have an existing sensor: domain then rename battery_levels: to sensor: and that should eliminate the cause of the error.