I’m trying to turn on a light with a relay from 2 different rooms using esphome with HA API.
So I have 3 devices, one with the light bulb that i might toggle and other 2 devices (switches) in different rooms with binary_sensor connected that act as a button.
I was wondering what could be the best practice to use to turn on the light from each different device, without using HA automation, but esphome.
As far as I understand, I must use the homeassistant.service. Is that correct or are there other ways?
thank you!