tsunglung / XiaomiAirFryer

Xiaomi Smart Air Fryer integration for Home Assistant
MIT License
66 stars 18 forks source link

Can not get the status of the unit in script #21

Closed tangrasmus closed 7 months ago

tangrasmus commented 7 months ago

I try to do an interval cooking script. For that it needs to know the status before it goes to the next step. The only status I can select is turned on or off, and that does not seem to work. I can see the unit deliver different status on screen "cocked" , "cocking", "standby", etc.

tangrasmus commented 7 months ago

Ok I got it working. So now I can go on to make it more sophisticated with rest times etc.

With at "wait for a template" building block containing: After first start command: {{is_state('sensor.xiaomi_airfryer_status' , 'Cooking')}} and before next interval start: {{is_state('sensor.xiaomi_airfryer_status' , 'Standby')}}

All script in yaml:

alias: Airfryer Steg interval 1 sequence: