Tag Archives: automations.yaml

Home Assistant – Roborock Automations

Hello Roborock enthusiasts!

In this little guide i will share with you how to get the most basic notifications from your Roborock vacuum using automations.yaml in Home Assistant!

I will add more automations as i keep using the Roborock S5, so stay put on some more useful automations!

 

You will need the following:

Make sure to change notify.ios_device to your own notification service.

And then add the following to your automations.yaml file and restart Home Assistant.

Cleaning started:

- id: 'Vacuum_started'
  alias: Vacuum Started Notification
  trigger:
  - entity_id: vacuum.xiaomi_vacuum_cleaner
    from: docked
    platform: state
    to: cleaning
  condition: []
  action:
  - data:
      message: Roborock started to clean!
    service: notify.ios_device

Cleaning completed:

- id: 'Vacuum_complete'
  alias: Vacuum Complete Notification
  trigger:
  - entity_id: vacuum.xiaomi_vacuum_cleaner
    platform: state
    to: docked
  condition: []
  action:
  - data:
      message: Cleaning complete - Charging
    service: notify.ios_device

 

For more information about how to get started with Home Assistant click the link below:

https://www.home-assistant.io/getting-started/

[HA] Schedule switches or lights in Home Assistant with automations.yaml

Hello!

If you want to schedule stuff to turn on or off at a specific time of the day, you will need to use automations.yaml.

Don’t forget to specify where the automations.yaml file is located in your configuration.yaml file.

The following code below is correctly-formatted, with the right amount of spaces in front of every line – which is very important.

So feel free to copy the text below, and change Alias, At, Entity and Service to better fit your needs.

configuration.yaml

automation: !include automations.yaml

automations.yaml

  - alias: "Name of this automation"
    trigger:
      platform: time
      at: '21:30:00'
    action:
       service: switch.turn_off
       entity_id: switch.light