NanoMote with OpenZwave (beta) automation

Hey guys,

I had some trouble getting the Nanomote to work with OpenZwave beta and thought I would post my working automation - which I could not have solved without the fantastic help of the discord channel.

You’ll need to define the node_id, scene_id, and the scene_value_id. In the example below the zwave node_id is 24. The scene_id is the 1st button and the scene_value_id can be determined by going to the HA Events page, subscribing to ozw.scene_activated, and watching the results when clicking a Nanomote button.

If you don’t add the scene_value_id, HA will register two events: the button click and the release.

Let me know if you have any questions.

  - alias: "Meds Taken"
    trigger:
      platform: event
      event_type: ozw.scene_activated
      event_data:
        node_id: 23
        scene_id: 1
        scene_value_id: 1
    action: 
      - service: counter.increment
        entity_id: counter.med_counter

Here is a working Minimote automation. Note the scene_id seems to be 0 and the scene_value_id is what changes

- alias: "Minimote 3 Pressed"
    trigger:
      platform: event
      event_type: ozw.scene_activated
      event_data:
        node_id: 34
        scene_value_id: 5
        scene_id: 0
    action: 
      service: light.turn_off
      entity_id:
        - light.bedroom
4 Likes

Do you think you can do this with the new ozw.scen_activated

- alias: Remote Control Master Bedroom
  trigger:
  - platform: event
    event_type: zwave.scene_activated
    event_data:
      entity_id: zwave.aeotec_minimote_1
  action:
  - service: homeassistant.toggle
    data_template:
      entity_id: >
        {% set map = {1: 'light.bedroom_lamp_one',
                      2: 'light.bedroom_lamp_one',
                      3: 'light.bedroom_lamp_two',
                      4: 'light.bedroom_lamp_two',
                      5: 'light.bedroom_ceiling_light',
                      6: 'light.bedroom_ceiling_light',
                      7: 'switch.bedroom_fan',
                      9: 'switch.bedroom_fan'} %}
        {{ map[trigger.event.data.scene_id|int] }}