Then the entity "light.bed_light" should be "on"

An entity, by its id, has a state, as the API gives it ("on", "off", "locked", "closed" …); waited for.

Examples

Then the entity "light.bed_light" should be "on"
Then the entity "light.bed_light" should be "off"
And the entity "lock.front_door" should be "locked"
Then the entity "cover.kitchen_window" should be "closed"
And the entity "input_boolean.webship_test_switch" should be "on"

Pattern

Then(/^the entity "([a-z0-9_]+\.[a-z0-9_]+)" should be "([^"]*)"$/, …)

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