diff --git a/packages/garden/README.md b/packages/garden/README.md new file mode 100644 index 0000000..df5067c --- /dev/null +++ b/packages/garden/README.md @@ -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`. diff --git a/packages/garden/garden.yaml b/packages/garden/garden.yaml new file mode 100644 index 0000000..6596977 --- /dev/null +++ b/packages/garden/garden.yaml @@ -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 }}