Hi,
I tried to search for an answer here and on youtube but without success. I hope the community will point me at the correct way.
My setup:
- Using Siemens LOGO 8.3 PLC to control all lights in my house
- Homeassistant running on RPi4
- Node-red successfuly installed and running on the same RPi4 as HA
- Node-red communicates with LOGO using S7 protocol and with HA it is integrated with HACS node-red compaion.
In Node red I have flows for all lights. Practicaly it means I have button entity that allows me to turn on/off the light. This button is propagated to Home assistant and works like a charm. With one button I am able to turn on or off my light (any). I have also configured sensor output that reports current state of the light, so I am gettin from sensor values True (ligh is on), False (light is off).
What I want to do, is to be able to control my lights not as buttons but as Lights.
To be able to set automations to turn on some light when something happens. Currently I am only able to say, hit the button when something happens (triggers the state).
I tried to use template light, but I probably dont fully understand how it works. Would somebody be willing to help me with my usecase?