NanoMote Quad (ZWave-JS)

Simple blueprint for the NanoMote Quad from AeoTec. Supports push and held events.

blueprint:
  name: NanoMote Quad (ZWave-JS)
  description: Create automations for the NanoMote Quad using ZWave-JS Integraetion
  domain: automation
  input:
    zwave_device:
      name: AeoTec NanoMote Quad 
      description: List of available NanoMotes.
      selector:
        device:
          integration: zwave_js
          manufacturer: Aeotec Ltd.
          model: ZWA003
    button_1_pressed:
      name: Button 1 - Large Button Pressed
      description: Action to run, when button 1 is pressed.
      default: []
      selector:
        action: {}
    button_1_held:
      name: Button 1 - Large Button Held
      description: Action to run, when the button 1 is held.
      default: []
      selector:
        action: {}
    button_2_pressed:
      name: Button 2 - Lower Left Button Pressed
      description: Action to run, when the button 2 pressed.
      default: []
      selector:
        action: {}
    button_2_held:
      name: Button 2 - Lower Left Button Held
      description: Action to run, when the button 2 is held.
      default: []
      selector:
        action: {}
    button_3_pressed:
      name: Button 3 - Lower Right Button Pressed
      description: Action to run, when the button 3 is pressed.
      default: []
      selector:
        action: {}
    button_3_held:
      name: Button 3 - Lower Right Button Held
      description: Action to run, when the button 3 is held.
      default: []
      selector:
        action: {}
    button_4_pressed:
      name: Button 4 - Center Button Pressed
      description: Action to run, when the button 4 is pressed.
      default: []
      selector:
        action: {}
    button_4_held:
      name: Button 4 - Center Button Held
      description: Action to run, when the button 4 is held.
      default: []
      selector:
        action: {}  
mode: single
max_exceeded: silent
variables:
  device_id: !input 'zwave_device'
trigger:
- platform: event
  event_type: zwave_js_value_notification
condition: '{{ trigger.event.data.device_id == device_id }}'
action:
- variables:
    button_id: '{{ trigger.event.data.property_key_name }}'
    press_count: '{{ trigger.event.data.value }}'
- service: logbook.log
  data:
    name: Button Id
    message: '{{ button_id }}'
- service: logbook.log
  data:
    name: Press Count
    message: '{{ press_count }}'
- service: logbook.log
  data:
    name: Device
    message: '{{ zwave_device }}'
- choose:
  - conditions: '{{ button_id == "001" and press_count == "KeyPressed" }}'
    sequence: !input 'button_1_pressed'
  - conditions: '{{ button_id == "002" and press_count == "KeyPressed" }}'
    sequence: !input 'button_2_pressed'
  - conditions: '{{ button_id == "003" and press_count == "KeyPressed" }}'
    sequence: !input 'button_3_pressed'
  - conditions: '{{ button_id == "004" and press_count == "KeyPressed" }}'
    sequence: !input 'button_4_pressed'
  - conditions: '{{ button_id == "001" and press_count == "KeyHeldDown" }}'
    sequence: !input 'button_1_held'
  - conditions: '{{ button_id == "002" and press_count == "KeyHeldDown" }}'
    sequence: !input 'button_2_held'
  - conditions: '{{ button_id == "003" and press_count == "KeyHeldDown" }}'
    sequence: !input 'button_3_held'
  - conditions: '{{ button_id == "004" and press_count == "KeyHeldDown" }}'
    sequence: !input 'button_4_held'

4 Likes

You cleaned up my automations from 1 per button (which broke when I migrated to zwave js on a new system) to now 1 automation that’s easy to manage.

Thanks!

hello, i do get an error using this bluepring that i dont understand.

Triggered manually at October 14, 2021, 4:20:31 PM

Define variables button_id, press_count

Stopped because an error was encountered at October 14, 2021, 4:20:31 PM (runtime: 0.08 seconds)

UndefinedError: ‘dict object’ has no attribute ‘event’

i am tring to activate a switch when press 1 remote buton

any idea?

Where can I add the blueprint?

‘’’
When ever i use the nanomote with this blueprint, the log shows this warning
Template variable warning: ‘zwave_device’ is undefined when rendering ‘{{ zwave_device }}’

7:03:00 PM – (WARNING) helpers/template.py.
can you recommend a fix for this? Is there an updated version of the blueprint?

My Nanomote Quad stopped working around that time too. Currently trying figure it out.