Add Garden Package

This commit is contained in:
2022-11-05 14:57:59 -07:00
parent 61dec6c4d6
commit 3442af63b0
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
# Garden Package
This package contains configuration information for garden sensors. The Plaid
Spruce Sensors should be joined via ZHA or Z2M and available as
`sensor.pepper_soil_sensor_mqtt_humidity` and
`sensor.tomato_soil_sensor_mqtt_humidity`.

View File

@@ -0,0 +1,26 @@
# Garden Package
# -----------------------------------------------------------------------------
# Garden Automations
automation:
# Notify on Low Soil Moisture
- alias: Notify on Low Soil Moisture
mode: queued
trigger:
- platform: numeric_state
entity_id: sensor.pepper_soil_sensor_mqtt_humidity
below: 15
- platform: numeric_state
entity_id: sensor.tomato_soil_sensor_mqtt_humidity
below: 15
action:
- service: persistent_notification.create
data:
title: Low Soil Mosture
message: >
Low Soil Moisture on {{ trigger.from_state.attributes.friendly_name }}
- service: notify.general
data:
message: >
Low Soil Moisture on {{ trigger.from_state.attributes.friendly_name }}