Call service -> entity node (switch)

Hello I got these entities as Switch


image

I’d like to turn it on if there is motion detected (binary sensor esphome)



image
what the call service node should look like?

In the switch node you should probably use lowercase on/off. You can check this by going to dev tools, look for the entity in states and use what it shows there.

The entity should be just switch.relay1 as you’re typing the entity should auto populate.

1 Like

yup, there are lowercase, my bad.
it works now: Thank you :slight_smile: