#Moving from Node Red

1 messages · Page 1 of 1 (latest)

dense ibex
#

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?

burnt elm
#

Or you can use trigger IDs

dense ibex
#

OK, here's what I'm trying and I'm confused.

alias: Test Automation
description: ""
triggers:

  • trigger: state
    entity_id:
    • binary_sensor.morning_light_timer
      conditions: []
      actions:
  • action: light.{{trigger.to_state.state}}
    target:
    entity_id: light.workstation_light_switch
    mode: single
burnt elm
#

You're missing the 'turn_' part there

#

Otherwise it's fine