HomeSeer HS-WD100+ Configurations

Older thread but I wanted to comment/cross post about this. I remember having seen this originally when looking at the HomeSeer switches. I recently picked these up and added them to my arsenal across the house. They are FANTASTIC!! Please bear in mind, this configuration is for OH2 vs OH1 which I believe the original poster was asking about.

If you are able to get the firmware updated on them to the latest, you will be able to just read a secondary item for the switches/dimmers. In my case I call it “switch_name_dimmer_scene” in addition to my “switch_name_dimmer”. This allows me to simply read the scene as 1.0, 2.0, 1.3, 2.3, 1.4, 2.4 - and apply the appropriate change.

The result is a simple rule allowing multiple actions. Example below. I wanted to outline this as it helps reduce the amount of rules and lines of code overall. One extra item, and a few If/Else If statements added to one rule.

rule "Master Bathroom Switch Automation"
when
  Item master_bathroom_dimmer_scene changed
then
  if(master_bathroom_dimmer_scene.state == 1.3){
    sendCommand(left_vanity_switch, ON)
    sendCommand(right_vanity_switch, ON)
    sendCommand(master_bathroom_dimmer, 100)
      logInfo("rules.automation", "Master Bathroom - All ON rule executed (2 Taps UP)")
  }
  else if(master_bathroom_dimmer_scene.state == 2.3){
    sendCommand(left_vanity_switch, OFF)
    sendCommand(right_vanity_switch, OFF)
    sendCommand(master_bathroom_dimmer, 10)
      logInfo("rules.automation", "Master Bathroom - Dim rule executed (2 Taps DOWN)")
  }
  else if(master_bathroom_dimmer_scene.state == 2.0){
    sendCommand(left_vanity_switch, OFF)
    sendCommand(right_vanity_switch, OFF)
    sendCommand(master_bathroom_dimmer, 0)
      logInfo("rules.automation", "Master Bathroom - All OFF rule executed (1 Tap DOWN)")
  }
end

Credit where due, I did see and mimic the similar mechanism that @Python used in this thread here. If you aren’t aware of the firmware update, this post supplies some information around that as well. I HIGHLY suggest getting the update. It seems switches ordered (at least direct from HS) at this point include the newer firmware by default.