Call a service (domain.service), on an entity by its id or on none; its answer must be 200.
Examples
When I call the service "light.turn_on" on "light.bed_light"
When I call the service "light.turn_off" on "light.bed_light"
And we call the service "input_boolean.toggle" on "input_boolean.webship_test_switch"
When I call the service "homeassistant.check_config"
And I call the service "switch.turn_off" on "switch.decorative_lights"
Pattern
When(/^(?:I |we )?call the service "([a-z0-9_]+)\.([a-z0-9_]+)"(?: on "([a-z0-9_]+\.[a-z0-9_]+)")?$/, …)
Part of @webship-js/home-assistant-steps (github.com/webship/home-assistant-steps), a step pack for Webship-js 2.0.x.