Light off at sunrise

Dear readers,

I’m totally new to automation and not a programmer in any way. I’m trying to setup a simple rule in the UI to turn off at sunrise but all I do ends at nothing. It is not working.

Home Assistant is running on a Raspberry PI and all is connected and can operate manually. Switch is a Qubino flush 2 relay.

In the UI I made a automation rule the same as on the Home Assistant website getting started, https://www.home-assistant.io/getting-started/automation/ only change I made is I do not want to switch on all lights but only one light.

But what I do it won’t work at all.

Question. At the service part, so I set a switch or light? I have tried both
Question. At the service data do I use. this are the data I have put in.

{
“entity_id”: “Garage Deuren”
}

or

{
“entity_id”: “72057594076282880”
}

or

{
“entity_id”: “switch.qubino_goap_zmnhbdx_flush_2_relays_switch_3”
}

Cheers,

Remco

maybe you just post the whole automation so we could take a look.

generally speaking the actin part dependens on the device you want to toggle. if a lamp is connected to an entity that is connected via a switch it will be switch.some_name if you added a light. component it will be light.light_name.

An entity_id contains a domain (light, switch, climate, lock, cover, etc) followed by an object_id (the device’s name). The two are separated by a single period.

For example, this is a valid entity_id:

switch.qubino_goap_zmnhbdx_flush_2_relays_switch_3

These are not valid:

Garage Deuren
72057594076282880

If you want to turn off a switch, use the switch.turn_off service or homeassistant.turn_off which can be used for several kinds of domains.

Sorted. I have to operate the switch and not light. And now it works. Now only have to see how the dimmer wil work. That is now the problem.