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

Add args to Node Red

$
0
0

@Mryusef1 wrote:

I am trying to use Node Red to control a Hue Dimmer as a switch. I can get it to work using automatons in HA but I have to create a different automation for each button. I can get all the buttons to work in NR but the two middle buttons zha events are both step. I can use the “args” in HA automation but can’t figure out how to add the args in NR. Here is how my HA automation is setup.

- id: '12'
  alias: Countertops Blue
  description: ''
  trigger:
  - event_data:
      args:
      - 0
      - 30
      - 9
      command: step
      device_ieee: 00:17:88:01:02:d6:99:b7
    event_type: zha_event
    platform: event
  condition: []
  action:
  - data:
      brightness_pct: 35
      rgb_color:
      - 0
      - 0
      - 255
    entity_id: light.counter_1
    service: light.turn_on
  - data:
      brightness_pct: 35
      rgb_color:
      - 0
      - 0
      - 255
    entity_id: light.counter_2
    service: light.turn_on
  - data:
      brightness_pct: 35
      rgb_color:
      - 0
      - 0
      - 255
    entity_id: light.counter_3
    service: light.turn_on

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95409

Trending Articles



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