1
0
ansible-home-assistant/configuration/automations/info-plants.yaml

81 lines
2.5 KiB
YAML
Raw Normal View History

2022-04-21 20:04:25 +00:00
- id: info-plants
2022-04-21 21:11:58 +00:00
alias: '[INFO] Water plants'
2022-04-21 20:04:25 +00:00
mode: single
trigger:
- platform: numeric_state
2022-11-17 00:04:04 +00:00
entity_id: sensor.living_room_plant_1_moisture
2022-04-21 20:04:25 +00:00
below: '20'
- platform: numeric_state
2022-11-17 00:04:04 +00:00
entity_id: sensor.living_room_plant_1_moisture
2022-04-21 20:04:25 +00:00
below: '15'
- platform: numeric_state
2022-11-17 00:04:04 +00:00
entity_id: sensor.living_room_plant_1_moisture
2022-04-21 20:04:25 +00:00
below: '10'
- platform: numeric_state
2022-11-17 00:04:04 +00:00
entity_id: sensor.living_room_plant_1_moisture
2022-04-21 20:04:25 +00:00
below: '5'
- platform: numeric_state
2022-11-17 00:04:04 +00:00
entity_id: sensor.living_room_plant_2_moisture
2022-04-21 20:04:25 +00:00
below: '20'
- platform: numeric_state
2022-11-17 00:04:04 +00:00
entity_id: sensor.living_room_plant_2_moisture
2022-04-21 20:04:25 +00:00
below: '15'
- platform: numeric_state
2022-11-17 00:04:04 +00:00
entity_id: sensor.living_room_plant_2_moisture
2022-04-21 20:04:25 +00:00
below: '10'
- platform: numeric_state
2022-11-17 00:04:04 +00:00
entity_id: sensor.living_room_plant_2_moisture
2022-04-21 20:04:25 +00:00
below: '5'
2023-02-05 15:40:37 +00:00
# - platform: numeric_state
# entity_id: sensor.thuja_plant_1_moisture
# below: '20'
# - platform: numeric_state
# entity_id: sensor.thuja_plant_1_moisture
# below: '15'
# - platform: numeric_state
# entity_id: sensor.thuja_plant_1_moisture
# below: '10'
# - platform: numeric_state
# entity_id: sensor.thuja_plant_1_moisture
# below: '5'
#
# - platform: numeric_state
# entity_id: sensor.thuja_plant_2_moisture
# below: '20'
# - platform: numeric_state
# entity_id: sensor.thuja_plant_2_moisture
# below: '15'
# - platform: numeric_state
# entity_id: sensor.thuja_plant_2_moisture
# below: '10'
# - platform: numeric_state
# entity_id: sensor.thuja_plant_2_moisture
# below: '5'
#
2022-11-17 00:04:04 +00:00
# - platform: numeric_state
# entity_id: sensor.ble_moisture_thuja_plant_3
# below: '20'
# - platform: numeric_state
# entity_id: sensor.ble_moisture_thuja_plant_3
# below: '15'
# - platform: numeric_state
# entity_id: sensor.ble_moisture_thuja_plant_3
# below: '10'
# - platform: numeric_state
# entity_id: sensor.ble_moisture_thuja_plant_3
# below: '5'
2022-04-21 20:04:25 +00:00
action:
2022-10-19 20:25:52 +00:00
- service: notify.mobile_app_iphone
2022-04-21 20:04:25 +00:00
data:
title: Water plants
message: >
{{ state_attr(trigger.entity_id, 'friendly_name') }} has moisture {{ states(trigger.entity_id) }} %
2023-02-05 15:40:37 +00:00
- service: notify.home_assistant
data:
message: >
Water plants
{{ state_attr(trigger.entity_id, 'friendly_name') }} has moisture {{ states(trigger.entity_id) }} %
2023-05-21 20:14:03 +00:00
target: [ "1109936159951441960" ]