I want to be notify if one of the battery inside a group goes below a certain % so i created a group:
group:
sensor:
name: "Batteries"
entities:
- sensor.button_235d_battery
- sensor.temp_sensor_battery
but when i try to use the group as an entity, it tells me that the group.sensor doesn't have a unique id. I tried to add it to the code above but it doesn't allow me to do that.. help
I'm not sure if it was previously possible via workarounds, but the latest beta
2023.2
introduces sensor groups (see pre-release notes).You can now create sensor groups via UI or YAML configuration, which calculate a value based on your defined group type ('last', 'max', 'mean', 'median', 'min', 'range', 'sum'). For your use case, 'min' should work e.g.:
Using the attributes and state provided by the sensor group, you should be able to create the desired notification: