When I toggle the tile of "Bed Light"

Toggle a device from its tile's icon, as a tap on it does ("Toggle <name>" on 2026.11, an icon with no name on 2026.5); wait for the tile to say another state.

Examples

When I toggle the tile of "Bed Light"
And we toggle the tile of "Kitchen Lights"
When I toggle the tile of "Ceiling Lights"
When we toggle the tile of "Bed Light"
And I toggle the tile of "Office RGBW Lights"

Pattern

When(/^(?:I |we )?toggle the tile of "([^"]*)"$/, …)

Part of @webship-js/home-assistant-steps (github.com/webship/home-assistant-steps), a step pack for Webship-js 2.0.x.