Did someone know how to read the battery level from a hue motion sensor?
I can read the temperature: states.[entity-ID].state
in my case: states.sensor.hall_sensor_temperature.state
But how to read the battery level?
Did someone know how to read the battery level from a hue motion sensor?
I can read the temperature: states.[entity-ID].state
in my case: states.sensor.hall_sensor_temperature.state
But how to read the battery level?
Use the attributes sensor from hacs for the battery attribute from the ‘light level’ sensor.
Thanks, but I think that I need some more help.
I tried with: states.sensor.hall_sensor_light_level.battery
but no success.
Install hacs.
Go to the store.
Install the attributes integration.
In your configuration.yaml put
sensor:
- platform: attributes
friendly_name: "Batteries"
attribute: battery_level
unit_of_measurement: "%"
entities:
- YOUR_LIGHT_LEVEL_SENSOR_1
- YOUR_LIGHT_LEVEL_SENSOR_2
- ETC
Restart homeassistant.
Add the new sensors to a card in your lovelace interface.
Ran a quick search on the forum for this. Confirmed working using HassOS 3.5
Thanks for this informations, it works and the battery level is now shown on all 3 entities the hue motion sensor has.
Now is it possible to use that in an automation to notify me if battery is below 20% or so?
It seems to work without any additional stuff on the configuration.yaml.
Is it possible to set up a ‘Lovelace Gauge’ to show just the battery level, I’ve had no success at present?
Found it here …