I'm considering moving some automations from Node Red to Home Assistant and one thing is confusing me.
In Node Red, I can pass a payload from an events: state node to an action node.
Essentially if a turn this thing on or off, the the entity_id called by the action node will follow suit.
How can this be mimiced in a Home Assistant automation?