Then the activity should show "Bed Light" changed to "On"

The activity shows a change of a device: its name, then what it changed to, and what changed it when the step says it ("automation: Webship test lights" matches "By automation: Webship test lights" on 2026.11 and "triggered by automation Webship test lights" on 2026.5). Read by the words of each entry, never by a time; waited for.

Examples

Then the activity should show "Bed Light" changed to "On"
Then the activity should show "Bed Light" changed to "On" by "automation: Webship test lights"
And the activity should show "Webship test switch" changed to "On"
Then the activity should show "Bed Light" changed to "Off"
And the activity should show "Decorative Lights" changed to "Off" by "Webship admin"

Pattern

Then(/^the activity should show "([^"]*)" changed to "([^"]*)"(?: by "([^"]*)")?$/, …)

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