Xiaomi Miio: Mi Robot Vacuum Error Status

Hi,
i have successfully added a Roborock S5 Max via Xiaomi Miio Integration.
The only thing i am missing at the moment is a entity which is showing the error state.

Sometimes i got a error from the robot (e.g. a blocked main brush) and i want to use a “Automation” (e.g. try a robot restart) in case of an error.
This was possible with the ioBroker implementation but i am not able to find this error state information in Homeassistant.

Is there a way to get this status?

I think it’s just the entity state.

Here is what I’m using :

alias: Erreur Igor
description: “”
triggers:

  • trigger: state
    entity_id:
    • vacuum.igor
      attribute: status
      to: Error
      conditions:
      actions:
  • action: script.testmobile
    metadata: {}
    data:
    notify_devices:
    - 324fa735e5a1ef347886e19a34f3fa25
    data_notification_icon: mdi:fire
    data_notification_color:
    - 213
    - 1
    - 1
    notify_title: Erreur Igorrrr
    notify_message: “{{ state_attr(‘vacuum.igor’, ‘error’) }}”
    mode: single

It’s great that you want to share your solution, even if it is three years too late. However it is no use to anyone unless you format it properly for the forum.

My bad @tom_l
Here it is, properly formatted :

alias: Erreur Igor
description: “”
triggers:

  • trigger: state
    entity_id:
    • vacuum.igor
      attribute: status
      to: Error
      conditions:
      actions:
  • action: script.testmobile
    metadata: {}
    data:
    notify_devices:
    - *************
    data_notification_icon: mdi:fire
    data_notification_color:
    - 213
    - 1
    - 1
    notify_title: Erreur Igorrrr
    notify_message: “{{ state_attr(‘vacuum.igor’, ‘error’) }}”
    mode: single

Nope. That is quoted, not formatted.