From 2a8bef931423e346123fef2a4ccc378eeab608c4 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 5 Feb 2023 16:40:37 +0100 Subject: [PATCH] Update plants notifications --- configuration/automations/info-plants.yaml | 58 ++++++++++++---------- 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/configuration/automations/info-plants.yaml b/configuration/automations/info-plants.yaml index f997d18..8fbd3f8 100644 --- a/configuration/automations/info-plants.yaml +++ b/configuration/automations/info-plants.yaml @@ -28,32 +28,32 @@ entity_id: sensor.living_room_plant_2_moisture below: '5' - - 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' - +# - 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' +# # - platform: numeric_state # entity_id: sensor.ble_moisture_thuja_plant_3 # below: '20' @@ -72,3 +72,9 @@ title: Water plants message: > {{ state_attr(trigger.entity_id, 'friendly_name') }} has moisture {{ states(trigger.entity_id) }} % + - service: notify.home_assistant + data: + message: > + Water plants + {{ state_attr(trigger.entity_id, 'friendly_name') }} has moisture {{ states(trigger.entity_id) }} % + target: [ "1071801716070154240" ]