I am trying to make condition that my Dyson 360 Eye (a vacuum cleaner) is sitting in its charging station before it is told to get cleaning.
I can see from the “States” page that the Dyson (named Dustin) has the following attributes:
"friendly_name": "Dustin",
"battery_level": 100,
"fan_speed": "Quiet",
"fan_speed_list": [
"Quiet",
"Max"
],
"position": "(17, -16)",
"battery_icon": "mdi:battery",
"icon": "mdi:roomba",
"status": "Stopped - Charged",
"supported_features": 255
The following script will work if I have commented out the condition:
start_360_eye:
alias: Start 360 Eye
sequence:
- condition: state
entity_id: vacuum.dustin_status
state: 'Stopped - Charged'
- alias: Turn on Dimmer Light
service: light.turn_on
data:
entity_id: light.dimmer_level
- alias: Start Dyson 360 Eye
service: vacuum.turn_on
data:
entity_id: vacuum.dustin
I have not been able to make the condition work.
Please could someone given me an idea how I can extract these attributes so I can use them in scripts?
Thanks very much.