Skip to content

Instantly share code, notes, and snippets.

@miguelpucela
miguelpucela / package_low_battery_entities.yaml
Last active October 14, 2021 23:06
Low Battery Sensor Detection and Notification
#######################################################################################################################
## Sensor - Low battery Entities Sensors
## Count and list of entities which have battery level below a certain threshold matching the pattern and device_class
## Based on jazzyisj/package_unavailable_entities.yaml. Thanks for his code.
## - state: number of low battery sensors
## - attribute: sensor_names - comma separated list of low battery sensor names
## - attribute: sensor_entities: - comma separated list of low battery sensor entity id's
## - updates every minute (sensor.time)
## - sensor entity_id's in ignored_sensors are filtered from this sensor
## - group.ignored_sensors MUST exist even if empty for sensor template to render
@miguelpucela
miguelpucela / package_unchanged_entities.yaml
Last active October 14, 2021 23:09
Unchanged Sensor Detection and Notification
#######################################################################################################################
## Sensor - Unchanged Entities Sensors
## Count and list of entities which have not changed for the last 'time' matching the pattern and device_class
## Based on jazzyisj/package_unavailable_entities.yaml. Thanks for his code.
## - state: number of unchanged sensors
## - attribute: sensor_names - comma separated list of unchanged sensor names
## - attribute: sensor_entities: - comma separated list of unchanged sensor entity id's
## - updates every minute (sensor.time)
## - sensor entity_id's in ignored_sensors are filtered from this sensor
## - group.ignored_sensors MUST exist even if empty for sensor template to render