Add battery notification
This commit is contained in:
parent
cbcfb92db6
commit
8fd45583df
85
configuration/automations/info-battery.yaml
Normal file
85
configuration/automations/info-battery.yaml
Normal file
@ -0,0 +1,85 @@
|
||||
- id: system-battery-notice
|
||||
alias: '[System] battery notice'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.3d_printer_smoke_sensor_battery_level
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.bathroom_thermostat_battery_level_3
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.bedroom_thermostat_battery_level
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.bedroom_window_open_close_power
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.ble_battery_a4c13867c876
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.ble_battery_bathroom_sensor_ble
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.ble_battery_bedroom_sensor_ble
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.ble_battery_computer_cave_sensor
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.ble_battery_filament_sensor
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.ble_battery_living_room_plant
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.ble_battery_living_room_plant_2
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.ble_battery_rack_sensor
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.ble_battery_thuja_plant
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.ble_battery_thuja_plant_2
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.ble_battery_thuja_plant_3
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.dining_thermostat_battery_level
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.dining_window_1_battery
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.dining_window_2_battery
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.door_window_sensor_battery_level
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.flood_water_sensor_battery_level
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.kitchen_motion_sensor_battery_level
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.office_thermostat_battery_level
|
||||
- platform: numeric_state
|
||||
below: '10'
|
||||
entity_id: sensor.siren_alarm_battery_level
|
||||
condition: [ ]
|
||||
action:
|
||||
- service: notify.mobile_app_iphone_pg
|
||||
data:
|
||||
title: "Low battery"
|
||||
message: >
|
||||
{{ state_attr(trigger.event.entity_id, 'friendly_name') }} has low battery
|
||||
data:
|
||||
channel: Notfall
|
||||
priority: high
|
||||
ttl: 0
|
||||
color: red
|
Loading…
Reference in New Issue
Block a user