I´m trying to get my Xiaomi Robot Vacium (v1) into HA. But I´m getting stuck on this part regarding the automation. I´m on version 0.62.1.
Invalid config for [automation]: required key not provided @ data['action']. Got None
required key not provided @ data['trigger']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
Failed config
automation:
- action: [source /home/homeassistant/.homeassistant/packages/vaccum.yaml:172]
- data: [source /home/homeassistant/.homeassistant/packages/vaccum.yaml:174]
message: Rob Fann Damm is cleaning!
service: notify.pushbullet
alias: Vacuum Starting
trigger: [source /home/homeassistant/.homeassistant/packages/vaccum.yaml:168]
platform: state
entity_id: sensor.vacuum_status
to: Cleaning
- action: [source /home/homeassistant/.homeassistant/packages/vaccum.yaml:182]
- data: [source /home/homeassistant/.homeassistant/packages/vaccum.yaml:184]
message: Rob Fann Damm is having a problem! Check if he is stuck or locked in somewhere!
service: notify.pushbullet
alias: Vacuum Error
trigger: [source /home/homeassistant/.homeassistant/packages/vaccum.yaml:178]
platform: state
entity_id: sensor.vacuum_status
to: Error
- action: [source /home/homeassistant/.homeassistant/packages/vaccum.yaml:191]
- data: [source /home/homeassistant/.homeassistant/packages/vaccum.yaml:193]
message: Rob Fann Damm is done cleaning! {{ states.vacuum.Rob_Fann_Damm.attributes.cleaned_area }} m2 was cleaned in {{ states.vacuum.Rob_Fann_Damm.attributes.cleaning_time }} minutes.
service: notify.pushbullet
alias: Vacuum finished
trigger: [source /home/homeassistant/.homeassistant/packages/vaccum.yaml:188]
platform: state
entity_id: sensor.vacuum_cleaning_count
- action: [source /home/homeassistant/.homeassistant/packages/vaccum.yaml:209]
- entity_id: vacuum.Rob_Fann_Damm
service: vacuum.turn_on
alias: Vacuum schedyling weekdays when everyone away
condition: [source /home/homeassistant/.homeassistant/packages/vaccum.yaml:201]
condition: and
conditions: [source /home/homeassistant/.homeassistant/packages/vaccum.yaml:203]
- condition: time
weekday: [source /home/homeassistant/.homeassistant/packages/vaccum.yaml:205]
- mon
- wed
- fri
trigger: [source /home/homeassistant/.homeassistant/packages/vaccum.yaml:198]
platform: time
at: 13:00:00
This is the code in the yaml-file.
automation:
alias: ‘Vacuum Starting’
trigger:
platform: state
entity_id: sensor.vacuum_status
to: ‘Cleaning’
action:
- service: notify.pushbullet
data:
message: ‘Rob Fann Damm is cleaning!’alias: ‘Vacuum Error’
trigger:
platform: state
entity_id: sensor.vacuum_status
to: ‘Error’
action:
- service: notify.pushbullet
data:
message: ‘Rob Fann Damm is having a problem! Check if he is stuck or locked in somewhere!’alias: ‘Vacuum finished’
trigger:
platform: state
entity_id: sensor.vacuum_cleaning_count
action:
- service: notify.pushbullet
data:
message: ‘Rob Fann Damm is done cleaning! {{ states.vacuum.Rob_Fann_Damm.attributes.cleaned_area }} m2 was cleaned in {{ states.vacuum.Rob_Fann_Damm.attributes.cleaning_time }} minutes.’alias: ‘Vacuum scheduling weekdays when everyone away’
trigger:
platform: time
at: “13:00:00”
condition:
condition: and
conditions:
- condition: time
weekday:
- mon
- wed
- fri
action:
- service: vacuum.turn_on
entity_id: vacuum.Rob_Fann_Damm