Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discussion: Examples for mowing automations with this integration #32

Closed
northpower25 opened this issue Jun 14, 2020 · 2 comments
Closed

Comments

@northpower25
Copy link
Contributor

I think it helps all (specialy new users) if we collect and discuss automations (here for mowing control) and rerequisits for those. For irrigation we discuss this here -> #30

@northpower25
Copy link
Contributor Author

Target:
Notification over HomeAssistant Companion App or as Telegram Messenger message or over Amazon Alexa with the help of Alexa Media Player Integration

Why not with the Gardena App:
It is not possible to get Messages from the status of the Gardena Mowers.

It is not possible to get this notifications over Amazon Alexa from the App

** Requirements **

  1. Installed hass-gardena-smart-system integration
  2. Home Assistant Compagnion iOS or Android App
  3. Gardena Mower
  4. (optional) Telegram Messenger Integration
  5. (optional) Alexa Media Player Integration you can find and install this Integration over HACS

Configuration:
to get the activity Statuscode as sensor for the automation trigger you need the activity attribut as seperat template sensor in the configuration.yaml

  - platform: template
    sensors:
      sileno_activity:
        value_template: "{{ states.vacuum.sileno.attributes.activity }}"
        friendly_name: "Sileno Aktivität"

Automation example:

- alias: "Docked with Autotimer"
  trigger:
    platform: state
    entity_id: sensor.sileno_activity
    to: 'PARKED_AUTOTIMER'
  action:
    - service: notify.notify
      data:
        title: "Mower docked"
        message: "Lawn mower was parked due to autotimer"
    - service: notify.telegram_[TELEGRAM_CHANNEL]
      data_template:
        title: '*Mower docked!*'
        message: "Lawn mower was parked due to autotimer -> https://[HA_URL]/lovelace/terrasse"

- alias: "Lawnmower mows"
  trigger:
    platform: state
    entity_id: sensor.sileno_activity
    to: 'OK_CUTTING'
  action:
    - service: notify.notify
      data:
        title: "Mower Status"
        message: "Lawnmower mows"
    - service: notify.telegram_[TELEGRAM_CHANNEL]
      data_template:
        title: '*Mower Status*'
        message: "Lawnmower mows -> https://[HA_URL]/lovelace/terrasse"

- alias: "Lawnmower loads"
  trigger:
    platform: state
    entity_id: sensor.sileno_activity
    to: 'OK_CHARGING'
  action:
    - service: notify.notify
      data:
        title: "Mower Status"
        message: "Lawnmower loads"
    - service: notify.telegram_[TELEGRAM_CHANNEL]
      data_template:
        title: '*Lawnmower loads*'
        message: "Lawnmower loads -> https://[HA_URL]/lovelace/terrasse"

- alias: "Mower Error"
  trigger:
    - platform: state
      entity_id: vacuum.sileno
      to: 'error'
  action:
    - service: notify.notify
      data:
        title: "Mower Fehler"
        message: "Error: {{ states.sensor.sileno_error_status.state }}!"
    - service: notify.telegram_[TELEGRAM_CHANNEL]
      data_template:
        title: '*Mower Error*'
        message: "Error: {{ states.sensor.sileno_error_status.state }}! -> https://[HA_URL]/lovelace/terrasse"

@grm
Copy link
Contributor

grm commented Jun 22, 2020

This has been added to a RECIPE.md

Thanks @northpower25

@grm grm closed this as completed Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants