Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105670

Help converting from HA automation to Node Red

$
0
0

Good morning everyone. The HA automation is working just fine, no issues at all i am just moving everything to Node Red.

I am trying to convert the below HA automation to Node Red. The part that i am not able to make work is the condition that the light switch MUST have been off for 1 second before it can run again. I can not for the life of me figure out how to add that condition in a Node Red flow. Any suggestions/help would be greatly appreciated! If i didnt provide enough information i apologize and i can provide anything you might need just let me know.

- id: '1590600465824'
  alias: Kitchen Light ON With Motion
  description: ''
  trigger:
  - entity_id: binary_sensor.presence_9
    platform: state
    to: 'on'
  condition:
  - condition: device
    device_id: ac4944e272d746ca9dfe3fbab818241f
    domain: switch
    entity_id: switch.kitchen_light
    for:
      hours: 0
      minutes: 0
      seconds: 1
    type: is_off
  - after: 06:00
    before: '20:00'
    condition: time
  action:
  - data: {}
    entity_id: switch.kitchen_light
    service: switch.turn_on

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 105670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>