1
0

Add more entities to battery automation

and changes some entities names
This commit is contained in:
Przemek Grondek 2022-05-03 01:34:47 +02:00
parent d8965ec82f
commit c22f99ff0e
6 changed files with 101 additions and 12 deletions

View File

@ -18,7 +18,7 @@
entity_id: binary_sensor.kitchen_tabletop_motion_detection entity_id: binary_sensor.kitchen_tabletop_motion_detection
to: 'on' to: 'on'
- platform: state - platform: state
entity_id: binary_sensor.sink_motion_sensor entity_id: binary_sensor.kitchen_sink_motion_sensor
to: 'on' to: 'on'
- platform: state - platform: state
entity_id: binary_sensor.shower_motion entity_id: binary_sensor.shower_motion

View File

@ -3,7 +3,7 @@
mode: single mode: single
trigger: trigger:
- platform: numeric_state - platform: numeric_state
entity_id: sensor.xiaomi_lumi_sen_ill_mgl01_cc990100_illuminance entity_id: sensor.office_illuminance
below: '20' below: '20'
for: for:
hours: 0 hours: 0
@ -21,7 +21,7 @@
mode: single mode: single
trigger: trigger:
- platform: numeric_state - platform: numeric_state
entity_id: sensor.xiaomi_lumi_sen_ill_mgl01_cc990100_illuminance entity_id: sensor.office_illuminance
above: '30' above: '30'
below: '150' below: '150'
for: for:
@ -40,7 +40,7 @@
mode: single mode: single
trigger: trigger:
- platform: numeric_state - platform: numeric_state
entity_id: sensor.xiaomi_lumi_sen_ill_mgl01_cc990100_illuminance entity_id: sensor.office_illuminance
above: '1500' above: '1500'
for: for:
hours: 0 hours: 0

View File

@ -55,7 +55,7 @@
to: 'on' to: 'on'
condition: condition:
- condition: numeric_state - condition: numeric_state
entity_id: sensor.xiaomi_lumi_sen_ill_mgl01_cc990100_illuminance entity_id: sensor.office_illuminance
below: '100' below: '100'
action: action:
- service: script.hallway_lights_on - service: script.hallway_lights_on

View File

@ -2,12 +2,48 @@
alias: '[INFO] Battery notice' alias: '[INFO] Battery notice'
mode: single mode: single
trigger: trigger:
- platform: numeric_state
below: '10'
entity_id: sensor.3d_printer_button_battery
- platform: numeric_state - platform: numeric_state
below: '10' below: '10'
entity_id: sensor.3d_printer_smoke_sensor_battery_level entity_id: sensor.3d_printer_smoke_sensor_battery_level
- platform: numeric_state
below: '10'
entity_id: sensor.bathroom_button_battery
- platform: numeric_state
below: '10'
entity_id: sensor.bathroom_door_battery
- platform: numeric_state
below: '10'
entity_id: sensor.bathroom_mirror_button_battery
- platform: numeric_state
below: '10'
entity_id: sensor.bathroom_motion_battery
- platform: numeric_state
below: '10'
entity_id: button.bathroom_music_button_battery
- platform: numeric_state - platform: numeric_state
below: '10' below: '10'
entity_id: sensor.bathroom_thermostat_battery_level_3 entity_id: sensor.bathroom_thermostat_battery_level_3
- platform: numeric_state
below: '10'
entity_id: sensor.bedroom_bed_button_battery
- platform: numeric_state
below: '10'
entity_id: sensor.bedroom_bed_motion_sensor_battery
- platform: numeric_state
below: '10'
entity_id: sensor.bedroom_blinds_button_battery
- platform: numeric_state
below: '10'
entity_id: sensor.bedroom_button_battery
- platform: numeric_state
below: '10'
entity_id: sensor.bedroom_door_battery
- platform: numeric_state
below: '10'
entity_id: sensor.bedroom_motion_battery
- platform: numeric_state - platform: numeric_state
below: '10' below: '10'
entity_id: sensor.bedroom_thermostat_battery_level entity_id: sensor.bedroom_thermostat_battery_level
@ -47,6 +83,12 @@
- platform: numeric_state - platform: numeric_state
below: '10' below: '10'
entity_id: sensor.ble_battery_thuja_plant_3 entity_id: sensor.ble_battery_thuja_plant_3
- platform: numeric_state
below: '10'
entity_id: sensor.computer_button_battery
- platform: numeric_state
below: '10'
entity_id: sensor.dining_blinds_controller_battery
- platform: numeric_state - platform: numeric_state
below: '10' below: '10'
entity_id: sensor.dining_thermostat_battery_level entity_id: sensor.dining_thermostat_battery_level
@ -62,12 +104,57 @@
- platform: numeric_state - platform: numeric_state
below: '10' below: '10'
entity_id: sensor.flood_water_sensor_battery_level entity_id: sensor.flood_water_sensor_battery_level
- platform: numeric_state
below: '10'
entity_id: sensor.freezer_door_battery
- platform: numeric_state
below: '10'
entity_id: sensor.front_door_lock_battery
- platform: numeric_state
below: '10'
entity_id: sensor.front_door_lock_button_battery
- platform: numeric_state
below: '10'
entity_id: sensor.front_door_sensor_battery
- platform: numeric_state
below: '10'
entity_id: sensor.hallway_button_battery
- platform: numeric_state
below: '10'
entity_id: sensor.hallway_motion_battery
- platform: numeric_state - platform: numeric_state
below: '10' below: '10'
entity_id: sensor.kitchen_motion_sensor_battery_level entity_id: sensor.kitchen_motion_sensor_battery_level
- platform: numeric_state
below: '10'
entity_id: sensor.kitchen_sink_button_battery
- platform: numeric_state
below: '10'
entity_id: sensor.kitchen_sink_leak_sensor_battery
- platform: numeric_state
below: '10'
entity_id: sensor.kitchen_sink_motion_sensor_battery
- platform: numeric_state
below: '10'
entity_id: sensor.living_room_button_battery
- platform: numeric_state
below: '10'
entity_id: sensor.office_blind_button_battery
- platform: numeric_state
below: '10'
entity_id: sensor.office_illuminance_sensor_battery
- platform: numeric_state - platform: numeric_state
below: '10' below: '10'
entity_id: sensor.office_thermostat_battery_level entity_id: sensor.office_thermostat_battery_level
- platform: numeric_state
below: '10'
entity_id: sensor.office_window_sensor_battery
- platform: numeric_state
below: '10'
entity_id: sensor.rack_smoke_sensor_battery
- platform: numeric_state
below: '10'
entity_id: sensor.shower_motion_battery
- platform: numeric_state - platform: numeric_state
below: '10' below: '10'
entity_id: sensor.siren_alarm_battery_level entity_id: sensor.siren_alarm_battery_level
@ -77,7 +164,9 @@
- platform: numeric_state - platform: numeric_state
below: '10' below: '10'
entity_id: sensor.kitchen_tabletop_motion_battery_level entity_id: sensor.kitchen_tabletop_motion_battery_level
condition: [ ] - platform: numeric_state
below: '10'
entity_id: sensor.washing_machine_battery
action: action:
- service: notify.mobile_app_iphone_pg - service: notify.mobile_app_iphone_pg
data: data:

View File

@ -6,7 +6,7 @@
entity_id: binary_sensor.coffee_machine_leak_sensor entity_id: binary_sensor.coffee_machine_leak_sensor
to: 'on' to: 'on'
- platform: state - platform: state
entity_id: binary_sensor.sink_leak_sensor entity_id: binary_sensor.kitchen_sink_leak_sensor
to: 'on' to: 'on'
- platform: state - platform: state
entity_id: binary_sensor.washing_machine_water_leak_sensor entity_id: binary_sensor.washing_machine_water_leak_sensor

View File

@ -16,7 +16,7 @@
entity_id: input_select.home_mode entity_id: input_select.home_mode
state: Day state: Day
- condition: numeric_state - condition: numeric_state
entity_id: sensor.xiaomi_lumi_sen_ill_mgl01_cc990100_illuminance entity_id: sensor.office_illuminance
below: '150' below: '150'
sequence: sequence:
- choose: - choose:
@ -45,7 +45,7 @@
entity_id: input_select.home_mode entity_id: input_select.home_mode
state: Night state: Night
- condition: numeric_state - condition: numeric_state
entity_id: sensor.xiaomi_lumi_sen_ill_mgl01_cc990100_illuminance entity_id: sensor.office_illuminance
below: '100' below: '100'
sequence: sequence:
- service: light.turn_on - service: light.turn_on
@ -64,7 +64,7 @@
from: 'on' from: 'on'
to: 'off' to: 'off'
- platform: state - platform: state
entity_id: binary_sensor.sink_motion_sensor entity_id: binary_sensor.kitchen_sink_motion_sensor
to: 'off' to: 'off'
for: '0:02:00' for: '0:02:00'
- platform: state - platform: state
@ -77,7 +77,7 @@
state: 'off' state: 'off'
for: '0:02:00' for: '0:02:00'
- condition: state - condition: state
entity_id: binary_sensor.sink_motion_sensor entity_id: binary_sensor.kitchen_sink_motion_sensor
state: 'off' state: 'off'
for: '0:02:00' for: '0:02:00'
- condition: state - condition: state
@ -93,7 +93,7 @@
mode: single mode: single
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.sink_motion_sensor entity_id: binary_sensor.kitchen_sink_motion_sensor
to: 'off' to: 'off'
for: '0:05:00' for: '0:05:00'
condition: [ ] condition: [ ]