Homeseer WD200+ Zwave Plus Wall Dimmer

@freshcoast You’re a genius! lol…seriously thanks. I can’t believe it was that easy. So…on another note. I took your same logic and applied it to parameter 13 (normal/status mode). I’ve tried using the values: 1 or 0, that didn’t work. I tried “Normal” and “Status” and that didn’t work. Any ideas on how I can trigger this parameter?

Thanks again! I’m learning a lot!

“Normal mode” and “Status mode”.

All the ones that are type Item, use the string label. https://github.com/home-assistant/open-zwave/blob/19506bcf2ea3aeef4b49fc9d0c37dc69cd959c78/config/homeseer/hs-wd200plus.xml

1 Like

@freshcoast That did it! Thank you!!! Last question…(i hope)…is there anyway to apply this to a HA group? I have 6 switches throughout the house that I would like to send status updates through automations and it sure would be easier to just group em all together and send them that way…but it appears you can only write to one node with this set command? Am I wrong?

There might be some fancy template logic that could do it, but the answer that comes to my mind first is to use a Python script. I use a script to set the status lights for my ceiling fan switch, however I only have one so I’m not using any groups. I followed the code from this project. The sample python script there takes a group entity id (of multiple switches) and applies the settings to all of them. Sounds like what you are asking for.

1 Like

This looks like it’s just what I’m looking for! So this python script also works with the FC200+ fan switches? I happen to own a few of those as well! Looking over the python script, do I need to modify any parameters within the .py script? Or are all the variable passed through the just send the values through the call functions?

Edit:

So I got it working…turns out I was grouping the “light” entity of the WD200 and not the “zwave” entity. Does anyone have this python script also working with FC200+ switches?

This is so awesome!! I just read in this thread "LED Mode" on HomeSeer Switches (100/200 series) that HA has support for the LEDs. I’ve built a package to set a few of the states on the switch to easily enable automations to set them up.

Notes:

  • My HS-WD200+ is on node 6 so you’ll probably have to change the automations node_id field to align with yours.
  • I’ve limited the blink frequency to max: 50 because that’s five seconds between off and on and I didn’t care about it blinking off and on with minutes in between.
  • If you rename any of the entity_ids be aware that the last automation’s template looks for the number value in the entities’ names. You’ll get an error if you remap the entity names but not the color automation.
  • I didn’t progam all of the available options for the HS-WD200+ because I don’t care about any of the others.

Every click of the mouse modifies the Z-Wave settings on the device, real time!

from my packages/hs_wd200.yaml file:

homeassistant:

input_boolean:
  hs_wd200_status_mode:
    name: Status Mode
    initial: on
  hs_wd200_normal_mode:
    name: Normal Mode
    initial: off

group:
  input_hs_wd200_normal_mode_on:
    name: Input HS-WD200+ Normal Mode ON
    entities:
      - input_boolean.hs_wd200_status_mode
  input_hs_wd200_status_mode_on:
    name: Input HS-WD200+ Status Mode ON
    entities:
      - input_boolean.hs_wd200_normal_mode

input_number:
  hs_wd200_leds_blink_mask:
    name: LEDs Blink Mask
    min: 0
    max: 127
    mode: box
  hs_wd200_leds_blink_frequency: # Limited this to 50 since that's 5 seconds between blinks real max is 255!!
    name: LEDs Blink Frequency
    min: 0
    max: 50

input_select:
  hs_wd200_dimmer_led_mode:
    name: Dimmer LED Mode
    options:
      - Normal mode
      - Status mode
  hs_wd200_normal_mode_led_color:
    name: Normal Mode LED Color
    options:
      - White
      - Yellow
      - Cyan
      - Magenta
      - Red
      - Blue
      - Green
  hs_wd200_led_1_color:
    name: LED 1 Color
    options:
      - 'Off'
      - White
      - Yellow
      - Cyan
      - Magenta
      - Red
      - Blue
      - Green
  hs_wd200_led_2_color:
    name: LED 2 Color
    options:
      - 'Off'
      - White
      - Yellow
      - Cyan
      - Magenta
      - Red
      - Blue
      - Green
  hs_wd200_led_3_color:
    name: LED 3 Color
    options:
      - 'Off'
      - White
      - Yellow
      - Cyan
      - Magenta
      - Red
      - Blue
      - Green
  hs_wd200_led_4_color:
    name: LED 4 Color
    options:
      - 'Off'
      - White
      - Yellow
      - Cyan
      - Magenta
      - Red
      - Blue
      - Green
  hs_wd200_led_5_color:
    name: LED 5 Color
    options:
      - 'Off'
      - White
      - Yellow
      - Cyan
      - Magenta
      - Red
      - Blue
      - Green
  hs_wd200_led_6_color:
    name: LED 6 Color
    options:
      - 'Off'
      - White
      - Yellow
      - Cyan
      - Magenta
      - Red
      - Blue
      - Green
  hs_wd200_led_7_color:
    name: LED 7 Color
    options:
      - 'Off'
      - White
      - Yellow
      - Cyan
      - Magenta
      - Red
      - Blue
      - Green

automation:
  - id: hs_wd200_normal_mode_panel
    alias: HS-WD200+ Normal Mode Panel
    trigger:
      platform: state
      entity_id: input_boolean.hs_wd200_normal_mode
      from: 'off'
      to: 'on'
    condition: []
    action:
      - service: homeassistant.turn_off
        data:
          entity_id: group.input_hs_wd200_normal_mode_on
      - service: input_select.select_option
        data:
          entity_id: input_select.hs_wd200_dimmer_led_mode
          option: Normal mode

  - id: hs_wd200_status_mode_panel
    alias: HS-WD200+ Status Mode Panel
    trigger:
      platform: state
      entity_id: input_boolean.hs_wd200_status_mode
      from: 'off'
      to: 'on'
    condition: []
    action:
    - service: homeassistant.turn_off
      data:
        entity_id: group.input_hs_wd200_status_mode_on
    - service: input_select.select_option
      data:
        entity_id: input_select.hs_wd200_dimmer_led_mode
        option: Status mode

  - id: hs_wd200_dimmer_led_mode
    initial_state: true
    alias: HS-WD200+ Dimmer LED Mode
    trigger:
      platform: state
      entity_id: input_select.hs_wd200_dimmer_led_mode
    condition: []
    action:
    - service: zwave.set_config_parameter
      data_template:
        node_id: 6
        parameter: 13
        value: "{{ states('input_select.hs_wd200_dimmer_led_mode') }}"

  - id: hs_wd200_normal_mode_led_color
    initial_state: true
    alias: HS-WD200+ Normal Mode LED Color
    trigger:
      platform: state
      entity_id: input_select.hs_wd200_normal_mode_led_color
    condition: []
    action:
    - service: zwave.set_config_parameter
      data_template:
        node_id: 6
        parameter: 14
        value: "{{ states('input_select.hs_wd200_normal_mode_led_color') }}"

  - id: hs_wd200_leds_blink_mask
    initial_state: true
    alias: HS-WD200+ LEDs Blink Mask
    trigger:
      platform: state
      entity_id: input_number.hs_wd200_leds_blink_mask
    condition: []
    action:
    - service: zwave.set_config_parameter
      data_template:
        node_id: 6
        parameter: 31
        value: "{{ states('input_number.hs_wd200_leds_blink_mask') | int }}"

  - id: hs_wd200_leds_blink_frequency
    initial_state: true
    alias: HS-WD200+ LEDs Blink Frequency
    trigger:
      platform: state
      entity_id: input_number.hs_wd200_leds_blink_frequency
    condition: []
    action:
    - service: zwave.set_config_parameter
      data_template:
        node_id: 6
        parameter: 30
        value: "{{ states('input_number.hs_wd200_leds_blink_frequency') | int }}"

# This automation is dependent on the entity_id names, see parameter template caclulation.
  - id: hs_wd200_led_color
    initial_state: true
    alias: HS-WD200+ LED Color
    trigger:
      platform: state
      entity_id: input_select.hs_wd200_led_1_color, input_select.hs_wd200_led_2_color, input_select.hs_wd200_led_3_color, input_select.hs_wd200_led_4_color, input_select.hs_wd200_led_5_color, input_select.hs_wd200_led_6_color, input_select.hs_wd200_led_7_color
    condition: []
    action:
    - service: zwave.set_config_parameter
      data_template:
        node_id: 6
        parameter: "{{ trigger.to_state.entity_id[26] | int + 20 }}"
        value: "{{ trigger.to_state.state }}"

If you’re using custom:button-card like me you can use this card definition to get functionality like I show in the animated gif at the top:

cards:
  - cards:
      - color_type: card
        entity: input_boolean.hs_wd200_normal_mode
        name: Normal Mode
        show_icon: false
        state:
          - value: 'on'
          - value: 'off'
        tap_action:
          action: call-service
          service: homeassistant.turn_on
          service_data:
            entity_id: input_boolean.hs_wd200_normal_mode
        type: 'custom:button-card'
      - color_type: card
        entity: input_boolean.hs_wd200_status_mode
        name: Status Mode
        show_icon: false
        state:
          - value: 'on'
          - value: 'off'
        tap_action:
          action: call-service
          service: homeassistant.turn_on
          service_data:
            entity_id: input_boolean.hs_wd200_status_mode
        type: 'custom:button-card'
    type: horizontal-stack
  - card:
      entities:
        - entity: input_select.hs_wd200_normal_mode_led_color
      title: Normal Mode Options
      type: entities
    conditions:
      - entity: input_boolean.hs_wd200_normal_mode
        state: 'on'
    type: conditional
  - card:
      entities:
        - entity: input_number.hs_wd200_leds_blink_frequency
        - entity: input_number.hs_wd200_leds_blink_mask
        - entity: input_select.hs_wd200_led_7_color
        - entity: input_select.hs_wd200_led_6_color
        - entity: input_select.hs_wd200_led_5_color
        - entity: input_select.hs_wd200_led_4_color
        - entity: input_select.hs_wd200_led_3_color
        - entity: input_select.hs_wd200_led_2_color
        - entity: input_select.hs_wd200_led_1_color
      title: Status Mode Options
      type: entities
    conditions:
      - entity: input_boolean.hs_wd200_status_mode
        state: 'on'
    type: conditional
type: vertical-stack

Now, I need to bake in some automations to set some of these LEDs…

Anyone using this switch with the new ozw and successfully using scenes (2, 3, 4x taps) for automations?

I have been using the GE switch with double tap for a long time, since before HA (was with Smartthings) and it works but recently found out that with the new ozw integration ozw itself doesn’t report the events that this switch sends out given that the GE does scene control in a crude way. Since I only really use the scene control in 1 maybe 2 rooms in my house, and I am ok with replacing those 2 switches with homeseer down the line, but i really want this multi tap feature.

I’m trying to use this but I’m not sure where to put the cards stuff. Does that go into a file somewhere? Or directly into the lovelace raw configuration editor? I tried pasting it into the raw configuration editor and all I get is three unnamed views and two buttons (Normal Mode and Status Mode). It seems like maybe the spacing is off. This is what I have:

views:
  - cards:
      - color_type: card
        entity: input_boolean.hs_wd200_normal_mode
        name: Normal Mode
        show_icon: false
        state:
          - value: 'on'
          - value: 'off'
        tap_action:
          action: call-service
          service: homeassistant.turn_on
          service_data:
            entity_id: input_boolean.hs_wd200_normal_mode
        type: 'custom:button-card'
      - color_type: card
        entity: input_boolean.hs_wd200_status_mode
        name: Status Mode
        show_icon: false
        state:
          - value: 'on'
          - value: 'off'
        tap_action:
          action: call-service
          service: homeassistant.turn_on
          service_data:
            entity_id: input_boolean.hs_wd200_status_mode
        type: 'custom:button-card'
    type: horizontal-stack
  - card:
      entities:
        - entity: input_select.hs_wd200_normal_mode_led_color
      title: Normal Mode Options
      type: entities
    conditions:
      - entity: input_boolean.hs_wd200_normal_mode
        state: 'on'
    type: conditional
  - card:
      entities:
        - entity: input_number.hs_wd200_leds_blink_frequency
        - entity: input_number.hs_wd200_leds_blink_mask
        - entity: input_select.hs_wd200_led_7_color
        - entity: input_select.hs_wd200_led_6_color
        - entity: input_select.hs_wd200_led_5_color
        - entity: input_select.hs_wd200_led_4_color
        - entity: input_select.hs_wd200_led_3_color
        - entity: input_select.hs_wd200_led_2_color
        - entity: input_select.hs_wd200_led_1_color
      title: Status Mode Options
      type: entities
    conditions:
      - entity: input_boolean.hs_wd200_status_mode
        state: 'on'
    type: conditional
type: vertical-stack

Hi @joe248, it should go directly into the lovelace editor. Mine looks like this when I click edit in the browser:

It doesn’t allow the easy editor, but you can see the code and the result. You need to have all the other things defined for the cards to reference otherwise it won’t work properly.

Ah, I see now. That worked. Thanks!

I have this all working, thank you for this!. Thing is, I have dozens of Homeseer dimmers and switches. I want to add a card at the top of the vertical stack with an input_select list of entities to choose which switch (node_id) that I want to modify or reference.

Wow… just noticed this now. Sorry, yes the DSC system (Envisalink) I has a pending status as it counts down to being active.

Hey there, sorry but not understanding your " from my packages/hs_wd200.yaml file:"
Do I jsut create new yaml file in the config folder ?

Thanks!

Ok so I managed to understand the packaging and got the cards working. But it doesn’t seem to change the configuration option of my Node.

I did change the node id to my node id.
What I’m I missing here.
Thanks!

It’s all good. My mistake. AFter a server restart all working.
Thanks again!

So I am seeing we have the LED ligthing worked out… but what about double, triple, quad clicks? Does it work? I was going to use my via Vera (which has a plug in that does enable double, triple clicks), but not sure those will translate over to HA or how?

1 Like

Is it possible to use this package in an automation to set the LED colors as a status indicator?

Is it possible to use this package in an automation to set the LED colors as a status indicator?

This example sets LED 4 to blinking red. (But maybe not the “package” that you are referring to; I am using the Z-Wave_JS integration.)

      - service: zwave_js.set_config_parameter
        target:
          entity_id: light.node_20
        data:
          parameter: '24'
          value: Red
      - service: zwave_js.set_config_parameter
        data:
          parameter: LED 4 Blink Status
          value: '1'
        target:
          entity_id: light.node_20

For this to function, a couple of settings need to be made in the Z-Wave Device Configuration:


2 Likes

Thanks! Is there a parameter that sets all of the LED’s status to a specific color, or so I have to do it one LED at a time?

Is there a parameter that sets all of the LED’s status to a specific color, or so I have to do it one LED at a time?

Not that I know of.

Here is how mine is set up as a status panel:

The Alarm LED indicates the alarm status and house mode:

  • Red Blinking = An Alarm is triggered
  • Green = Occupied
  • Cyan = Night Security
  • Yellow = Away

The Door Status LEDs indicate the state of each door:

  • Red Blinking = Lock jam or tamper detected
  • Yellow Blinking = Door is open
  • Yellow = Door is unlocked
  • Off = Door is locked
2 Likes