Hi everyone,
I’m currently integrating a Siemens LOGO! 8 PLC with Home Assistant using Node-RED (specifically the node-red-contrib-home-assistant-websocket palette), and I’m struggling with a usability issue regarding entity management.
My Scenario: I have a light controlled by a latching relay (toggle) programmed in the LOGO! Soft Comfort. To control it properly, I need:
- Action: Send a pulse (set to 1, then back to 0) to a Flag/Marker (M10) to toggle the state.
- Feedback: Read the actual state of the light from a Physical Output (Q6).
The Problem: Right now in Node-RED, I have to create a button node for the pulse action and a binary_sensor node for the feedback. This results in two separate entities in Home Assistant. What I’m looking for is a single device/entity in the Dashboard that:
- Shows the color/state (On/Off) based solely on the status of Q6.
- When pressed, triggers the pulse sequence on M10.
What I’ve tried:
- List item
I tried using the switch node with “Enable Input” to receive the state from Q6, but I keep getting configuration errors or “type conflicts” when trying to link them to the same Device in the Entity Config.
- List item
I want the UI toggle to be “feedback-based”—meaning the icon should only change color when the PLC confirms the output Q6 is active, not just because I tapped the screen.
The Question: Is there a clean way to create a “Template Switch” or a unified entity directly within Node-RED to handle this?
Thanks in advance!