Selective Control of Zwave Switches

Hello. Hassio newbie here. I have an Ecolink motion sensor toggling a couple of zwave plus devices: Honeywell Z-Wave Plug-In Smart Switch and a Honeywell Z-Wave In Wall Smart Switch. They both turn on when the sensor triggers from off to on. When the sensor goes from on to off the switches go off. What I’m not sure of how to do is to control each switch one at a time. That is do I create an automation to control one device and comment out the other device? Right now when I manually toggle one device the other does the same. Do I use groups to do this?

It sounds like you might be using zwave associations to trigger the switches. I.e. the motion sensor is directly triggering the switches, and Home Assistant is out of the picture.

Does that ring true to you? Or can you elaborate on your setup?

How do they function now? If you have not set anything up in Home Assistant they may be networked in peer mode without a controller.

What z-wave controller are you using with Hassio?

Thanks for your reply. I’m using the Aeotec Z-Stick Gen5, Z-Wave Plus USB controller. The plug in smart switch has a table lamp plugged into it and the wall switch controls a bedroom ceiling light. When the sensor triggers both come on. When the sensor goes from on to off, both turn off.
Attached is a snapshot of my overview page and the automation script. I’ve tried to start out simple with just manual control of each switch then put them into an automationAutomation

I think I see what is happening in the first automation. In the action, you are specifying a service but no entity. Here is an example of mine that turns on a particular switch at sunset.

- id: '1550697952774'
  alias: Plug_Sunset
  trigger:
  - event: sunset
    platform: sun
  condition: []
  action:
  - data:
      entity_id: switch.front_porch
    service: switch.turn_on

what are the entity_id’s of both switches?

also it’s better if you copy and paste your actual code into the post instead of using a screen shot.

make sure you format it correctly.

This is working now. The motion sensor turns on the honeywell 4952 switch only, then when the motion sensor goes low the switch turns off. I added the switch entity id to the data section just above the
service: switch.turn_on statement.

  • id: ‘1555201991144’
    alias: Better-Work_On
    trigger:
    • entity_id: binary_sensor.ecolink_motion_detector_sensor
      from: ‘off’
      platform: state
      to: ‘on’
    • entity_id: switch.honeywell_unknown_type_4952_id_3036_switch
      from: ‘off’
      platform: state
      to: ‘on’
      condition: []
      action:
    • alias: ‘’
      data:
      entity_id: switch.honeywell_unknown_type_4952_id_3036_switch
      service: switch.turn_on
  • id: ‘1555202606530’
    alias: Better-Work_Off
    trigger:
    • entity_id: binary_sensor.ecolink_motion_detector_sensor
      from: ‘on’
      platform: state
      to: ‘off’
    • entity_id: switch.honeywell_unknown_type_4952_id_3036_switch
      from: 'on ’
      platform: state
      to: ‘off’
      condition: []
      action:
    • alias: ‘’
      data: {}
      service: switch.turn_off

I’m glad it’s working.

But you still aren’t properly formatting your code.

see my gif from above.