Using drop-down helper on dashboard card

I have a room with a Murphy bed so sometimes it’s a bedroom but sometimes it’s my office. When it’s my office I want the motion detectors to turn lights on and off through an automation, but when it’s a bedroom I want the automation to be disabled.

I know I could make two entity cards turning on and turning off the automation but I know that there is a drop-down helper which I’ve created with the two choices but I can’t seem to get it to work using the cards editor


I’ve attached a picture to illustrate what I’m trying to do, the mushroom select card is at the bottom, of the picture.

Add a State condition to your automation so that it is only allowed to execute the actions when your Input Select helper is in the proper state.

Wonderful idea. Thank you.