Checking the status of a sensor on my washer and announce it

I’m trying to create an automation that I can trigger by voice command to check how much time is remaining on my washer, it’s a smart washer with a sensor exposed to HA called sensor.front_load_washer_remaining_time, but when I try to create an automation or script to look at the status of the sensor I can’t find the option to do.

I don’t know what voice assistant you use but I think the easiest way would be to create an input_boolean to trigger the automation.

then create a routine (if you can) that when you say “check the washer time” it turns on the input_boolean and then that runs the announcement automation.

For example say “alexa, check the washer time”.

that turns on the boolean

that triggers the automation

the announcement runs

then in the last step of the automation turn the boolean back off so it’s ready for the next trigger from the routine.