Can’t get automation to work.
I have made a mqtt switch, and I have another mqtt with relay on it to control the lights.
How to connect 2 of them, to work as one.
When I press my switch, I want the other mqtt device to turn on in automation.
Tried several examples, but nothing helps
- alias: example