- Watering the lawn based on the current soil moisture and time of day. With the aim that the lawn is watered sufficiently but is not too wet.
- Notification over HomeAssistant Companion App or as Telegram Messenger message or over Amazon Alexa with the help of Alexa Media Player Integration
- Use a NFC tag to start and stop mowing
Watering the lawn based on the current soil moisture and time of day. With the aim that the lawn is watered sufficiently but is not too wet.
The problem of Gardena automation for lawn irrigation is that this ...
- not flexible enough for soil moisture
- not dynamic enough
- Lawn gets too wet
- Water consumption is too high
- Installed hass-gardena-smart-system integration
- Timer with the need of long-time availability (with HA restart in the between) ->https://community.home-assistant.io/t/how-to-make-active-timers-survive-a-restart/146248
- Gardena smart control
- Gardena Smart Sensor or other sensors for depending values
- Gardena Pipeline System
- id: lawn_irrigation_garden
alias: lawn irrigation garden
trigger:
platform: time_pattern
minutes: '/15'
seconds: 0
condition:
condition: and
conditions:
- condition: state
entity_id: timer.lawn_irrigation_garden
state: 'idle'
- condition: numeric_state
entity_id: sensor.garden_sensor_light_intensity
below: 10
- condition: numeric_state
entity_id: sensor.plant bed_sensor_light_intensity
below: 10
- condition: numeric_state
entity_id: sensor.garden_sensor_ambient_temperature
above: 5
- condition: numeric_state
entity_id: sensor.garden_sensor_soil_moisture
below: 10
action:
- service: timer.start
entity_id: timer.timer.lawn_irrigation_garden
- service: switch.turn_on
entity_id: switch.garden_water_control
- delay: 0:12:00
- service: switch.turn_off
entity_id: switch.garden_water_control
- delay: 0:60:00
- service: switch.turn_on
entity_id: switch.garden_water_control
- delay: 0:24:00
- service: switch.turn_off
entity_id: switch.garden_water_control
- delay: 0:60:00
- service: switch.turn_on
entity_id: switch.garden_water_control
- delay: 0:24:00
- service: switch.turn_off
Notification over HomeAssistant Companion App or as Telegram Messenger message or over Amazon Alexa with the help of Alexa Media Player Integration
It is not possible to get Messages from the status of the smart water or the sensor devices.
It is not possible to get this notifications over Amazon Alexa from the App
- Installed hass-gardena-smart-system integration
- Home Assistant Compagnion iOS or Android App
- Gardena smart control
- Gardena Smart Sensor or other sensors for depending values
- Gardena Pipeline System
- (optional) Telegram Messenger Integration
- (optional) Alexa Media Player Integration you can find and install this Integration over HACS
only needed for Telegram
- alias: "Notify lawn irrigation garden on"
trigger:
platform: state
entity_id: switch.garden_water_control
to: 'on'
action:
- service: notify.notify
data:
title: "lawn irrigation"
message: "Watering in the garden has started"
- service: notify.alexa_media
data:
data:
type: announce
target:
- media_player.radio_livingroom
message: "Watering in the garden has started. The moisture is currently {{ states.sensor.garden_sensor_moisture.state }}% the temperature is now {{ states.sensor.garden_sensor_temperature.state }}°C"
- service: notify.telegram_[you Telegram channel]
data_template:
title: '*Watering in the garden has started!*'
message: "Watering in the garden has started. The moisture is currently {{ states.sensor.garden_sensor_moisture.state }}% the temperature is now {{ states.sensor.garden_sensor_temperature.state }}°C -> https://[public HA URL]/lovelace/terrasse"
data:
inline_keyboard:
- 'Stop watering:/stopwateringgarden'
- ' Stop for 3 hours:/stopwateringgarden3h, Stop for 24 hours:/stopwateringgarden24h'
- id: 'telegram_stop_watering_garden'
alias: 'Telegram Stop watering garden'
trigger:
platform: event
event_type: telegram_callback
event_data:
data: '/stopwateringgarden'
action:
- service: telegram_bot.answer_callback_query
data_template:
callback_query_id: '{{ trigger.event.data.id }}'
message: 'OK, I'll stop watering the garden'
- service: switch.turn_off
entity_id: switch.garden_water_control
- service: notify.telegram_[you Telegram channel]
data_template:
title: '*Watering garden!*'
message: "Watering stopped in the garden https://[public HA URL]/lovelace/terrasse"
- id: 'telegram_stop_watering_garden_3h'
alias: 'Telegram watering stop 3h'
trigger:
platform: event
event_type: telegram_callback
event_data:
data: '/stopwateringgarden3h'
action:
- service: telegram_bot.answer_callback_query
data_template:
callback_query_id: '{{ trigger.event.data.id }}'
message: 'OK, stop watering for 3 hours'
- service: automation.turn_off
entity_id: automation.lawn_irrigation_garden
- service: notify.telegram_[you Telegram channel]
data_template:
title: '*Watering Garden!*'
message: "Irrigation in the garden interrupted for 3 hours https://[public HA URL]/lovelace/terrasse"
- delay: '03:00:00'
- service: automation.turn_on
entity_id: automation.lawn_irrigation_garden
- service: notify.telegram_[you Telegram channel]
data_template:
title: '*Watering Garden!*'
message: "Automation for irrigation in the garden was restarted after 3 hours https://[public HA URL]/lovelace/terrasse"
- id: 'telegram_stop_watering_garden_24h'
alias: 'Telegram watering stop 24h'
trigger:
platform: event
event_type: telegram_callback
event_data:
data: '/stopwateringgarden24h'
action:
- service: telegram_bot.answer_callback_query
data_template:
callback_query_id: '{{ trigger.event.data.id }}'
message: 'OK, stop watering for 24 hours'
- service: automation.turn_off
entity_id: automation.lawn_irrigation_garden
- service: notify.telegram_[you Telegram channel]
data_template:
title: '*Watering Garden!*'
message: "OK, stop watering for 24 hours https://[public HA URL]/lovelace/terrasse"
- delay: '24:00:00'
- service: automation.turn_on
entity_id: automation.lawn_irrigation_garden
- service: notify.telegram_[you Telegram channel]
data_template:
title: '*Watering Garden!*'
message: "Automation for irrigation in the garden was restarted after 24 hours https://[public HA URL]/lovelace/terrasse"
- alias: "Notify watering Garden off"
trigger:
platform: state
entity_id: switch.garden_water_control
to: 'off'
action:
- service: notify.notify
data:
title: "Watering Garden"
message: "Watering in the garden has ended"
- service: notify.alexa_media
data:
data:
type: announce
target:
- media_player.radio_wohnzimmer
message: "Watering in the garden has ended. The moisture is now {{ states.sensor.garden_sensor_moisture.state }}%"
- service: notify.telegram_[you Telegram channel]
data_template:
title: '*Watering in the garden has ended!*'
message: "Watering in the garden has ended. The moisture is now {{ states.sensor.garden_sensor_moisture.state }}% -> https://[public HA URL]/lovelace/terrasse"
Normaly my Gardena Irrigation Control works per automations, but in a part of situations i have to start/stop it manualy (i.e. I will fill a pot with water) in this cases i have before use my Smartphone open the App search for the Watercontroll entity and start/stop this.
Now with the NFC tag integration from HomeAssistant thats is more easy than befor, now i’m scan with my Smartphone an tag on my Hose trolley and give the okay that the tag starts the HA App and the water control starts if it's off and stopps if it's on.
Steps for this.
-
Buy an NFC tag like this one https://www.amazon.de/dp/B06Y1BLLD4?ref=ppx_pop_mob_ap_share
-
Install the HA Companion App on your Smartphone (if you have't do this before)
- Go to the NFC tag configuration in HA and give your NFC tag an readable name and create an Automation like this on
##########################################################################
# Control Watercontrol with NFC tag
##########################################################################
- id: '1600768999472'
alias: 'NFC Tag Garden watering on/off is scanned if water is off'
description: If the irrigation in the garden is off start watering
trigger:
- platform: tag
tag_id: 9dc6d5b1-651d-4880-839c-19cdd798a5f8
condition:
- condition: device
type: is_off
device_id: eecdf62964f3494d877413f7bd7b2a45
entity_id: switch.garten_water_control
domain: switch
action:
- type: turn_on
device_id: eecdf62964f3494d877413f7bd7b2a45
entity_id: switch.garten_water_control
domain: switch
mode: single
- id: '1600769207834'
alias: 'NFC Tag Garden watering on/off is scanned if water is on'
description: If the irrigation in the garden is on stop watering
trigger:
- platform: tag
tag_id: 9dc6d5b1-651d-4880-839c-19cdd798a5f8
condition:
- condition: device
type: is_on
device_id: eecdf62964f3494d877413f7bd7b2a45
entity_id: switch.garten_water_control
domain: switch
action:
- type: turn_off
device_id: eecdf62964f3494d877413f7bd7b2a45
entity_id: switch.garten_water_control
domain: switch
mode: single```