I am trying to set up an automation in which my living room lights turn on at sunset if neither my wife or I are at home.
The automation UI only lets me use devices in the actions part and not entities. My HA has an entity named lights.living_room which is a room/group passed to it by Philips Hue.
How would I go about using that entity in an automation or turning that entity into a device.
Change the Action Type to āCall Serviceā instead of āDeviceā.
In fact I recommend you do not use device triggers, conditions or actions if you can. This will make it a lot easier if you ever have to replace a device/entity.
No I know that, Iām just asking if in general it is best to use service calls whenever possible instead of interacting directly with devices and entities.
Plus, you are far more likely to get high-quality support if you use normal service calls with entities/data than if you use the device-based triggers/actions in automations/scripts.