Service Calling
The final ability of entity references is to issue targeted service calls. These are a convenience for when the service call's domain is the same as the entity.
hass.refBy.id("light.office").turn_on()
// same as
hass.call.switch.turn_on({ entity_id: ["light.office"] });
