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

75 lines
2.3 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
entity_id: sensor.ble_moisture_living_room_plant_1
2022-04-21 20:04:25 +00:00
below: '20'
- platform: numeric_state
entity_id: sensor.ble_moisture_living_room_plant_1
2022-04-21 20:04:25 +00:00
below: '15'
- platform: numeric_state
entity_id: sensor.ble_moisture_living_room_plant_1
2022-04-21 20:04:25 +00:00
below: '10'
- platform: numeric_state
entity_id: sensor.ble_moisture_living_room_plant_1
2022-04-21 20:04:25 +00:00
below: '5'
- platform: numeric_state
entity_id: sensor.ble_moisture_living_room_plant_2
below: '20'
- platform: numeric_state
entity_id: sensor.ble_moisture_living_room_plant_2
below: '15'
- platform: numeric_state
entity_id: sensor.ble_moisture_living_room_plant_2
below: '10'
- platform: numeric_state
entity_id: sensor.ble_moisture_living_room_plant_2
below: '5'
- platform: numeric_state
entity_id: sensor.ble_moisture_thuja_plant_1
below: '20'
- platform: numeric_state
entity_id: sensor.ble_moisture_thuja_plant_1
below: '15'
- platform: numeric_state
entity_id: sensor.ble_moisture_thuja_plant_1
below: '10'
- platform: numeric_state
entity_id: sensor.ble_moisture_thuja_plant_1
below: '5'
- platform: numeric_state
entity_id: sensor.ble_moisture_thuja_plant_2
below: '20'
- platform: numeric_state
entity_id: sensor.ble_moisture_thuja_plant_2
below: '15'
- platform: numeric_state
entity_id: sensor.ble_moisture_thuja_plant_2
below: '10'
- platform: numeric_state
entity_id: sensor.ble_moisture_thuja_plant_2
below: '5'
2022-04-21 20:04:25 +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'
action:
- service: notify.mobile_app_iphone_pg
data:
title: Water plants
message: >
{{ state_attr(trigger.entity_id, 'friendly_name') }} has moisture {{ states(trigger.entity_id) }} %