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

Templates for zwave_js.event trigger platform?

$
0
0

I have a simple script where I want to wait for a “metadata updated” zwave node event for a given device (and then ping it), but I want to be able to pass the device_id as a parameter to the script:

alias: Wait and Ping
sequence:
  - wait_for_trigger:
      - platform: zwave_js.event
        device_id: '{{ device_id }}'
        event_source: node
        event: metadata updated    
  - service: zwave_js.ping
    data: {}
    target:
      device_id: '{{ device_id }}'
description: Wait and Ping
fields:
  entity_id:
    name: Device ID
    required: true
    selector:
      device: null
mode: parallel

However, whenever I try to save/validate my script I get the error "Message malformed: No nodes found for given device_ids or entity_ids."

Does the zwave_js.event trigger platform just not support templates?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103335

Trending Articles



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