ryanjmulder / smartthings-edge-drivers

Apache License 2.0
6 stars 4 forks source link

WX-300 support #3

Closed paulschreiber closed 1 year ago

paulschreiber commented 1 year ago

Please add support for the WX-300.

ryanjmulder commented 1 year ago

Any idea what the fingerprint is?

paulschreiber commented 1 year ago

How do I look that up?

paulschreiber commented 1 year ago

HomeSee has groovy code

Looks like the WX300 can have two IDs, depending on if it is in switch or dimmer mode

// zw:Ls2a type:1100 mfr:000C prod:4447 model:4036 ver:1.11 zwv:7.15 lib:03 cc:5E,55,9F,6C sec:26,70,5B,85,59,5A,7A,87,72,8E,73,86
fingerprint mfr: "000C", prod: "4447", model: "4036", deviceJoinName: "HomeSeer Wall Dimmer WX300" //WX300 in Dimmer Mode

// zw:Ls2a type:1000 mfr:000C prod:4447 model:4037 ver:1.11 zwv:7.15 lib:03 cc:5E,55,9F,6C sec:25,70,5B,85,59,5A,7A,87,72,8E,73,86
fingerprint mfr: "000C", prod: "4447", model: "4037", deviceJoinName: "HomeSeer Wall Switch WX300" //WX300 in Switch Mode

Not sure how to handle two virtual devices for one physical device. I made a wx300 and wx300s: https://github.com/paulschreiber/smartthings-edge-drivers/commit/41b45228d481916e2d3174c3dc68b9881843b6b0

ryanjmulder commented 1 year ago

Based on the user guide, you have to change the mode before z-wave inclusion, so as far as the hub is concerned the dimmer/switch modes might as well be two different switches entirely. So, I think your code is correct. Could you send me a pull request so I can easily merge your changes in?

ryanjmulder commented 1 year ago

Thanks, Paul!