How to convert Home Assistant yaml to Node Red format

I recently found up that node red automation seem like more fast respond than Home Assistant automation & decided to transfer all home assistant automation to node red if possible. I come across the below home assistant automation which I can't figure up how to configure in node red. By the way, my node red is install inside home assistant so I get all the device & scene.

It do look like simple automation but I can't figure how to configure the node red switch. I consider myself as beginner in node red but intermediate knowledge in home assistant.

alias: Common bath 20W light ON - perform scene selection
description: ""
trigger:
  - platform: state
    entity_id:
      - light.common_bathroom_20w_light
    to: "on"
    for:
      hours: 0
      minutes: 0
      seconds: 2
condition: []
action:
  - if:
      - condition: time
        before: "23:30:00"
        after: "08:00:00"
    then:
      - service: scene.turn_on
        target:
          entity_id: scene.common_bathroom_20w_50_5500k
        metadata: {}
    else:
      - service: scene.turn_on
        target:
          entity_id: scene.common_bathroom_20w_25_5500k
        metadata: {}
mode: single

I already figure out how to do it as below

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.