Need help perfecting device handler for GoControl zwave smart light switch cover

Sure did. I pulled the battery tab and hit one of the buttons as the instructions said, while the ST hub was in pairing mode. The device came right up.

If you’re able to add the button hold events that’d be great. Then I can still use this to dim; for wife approval the top button is set to lights on, and the bottom to lights off (four GE link bulbs). I could probably work out a way with rule machine to add a dimming level with only button pushes, but holding is just simpler. Great work so far though.

1 Like

Did some messing around with some of the basic output. Looks like button hold events can be detected. I’ll continue messing around with the code and see what I can do. I personally don’t use the held event for any of my automations. However, I’ll get to work on that!

I have the same thing going on with my lights. Right now I’m using Smart Lighting but I’m working on a “companion SmartApp”. Just a modified button controller to handle this use case easily.

Thanks again for the support! Tell your wife I’m working hard on this & it’ll soon be even better! You have been a great part in growing this Device Handler.

1 Like

@ajpri, wanted to let you know that I got my switch today and hooked it up. It immediately paired with your device type which I had pre-installed on my hub and I was able to use the button controller app to setup the buttons to control a set of smart bulbs in a light fixture. The only thing missing as far as I can tell is being able to use the “held” presses to control the dimming/brightening of the lights.

Now that I have one of these if you would like help looking into the dimming/brightening functions I am willing to help with that, I am new to z-wave device handlers but have been doing some reading and also have written the zigbee device type for the OSRAM dimming switch so I can likely figure out z-wave fairly quickly as well.

I also wrote a smart app to go along with the device type I wrote which allows you to at least set a specific percentage for light level when held commands are received so that you can at least use the held buttons as a dim/brighten to specific levels. I will let you know once I test and see if that app will work with this device type, if nothing else I may modify the smart app to work. I have not given up hope for the OSRAM dimming switch since I do feel it has a better look but am still waiting for an OSRAM engineer to work with me on that.

I am going to update the thread for my device type with a quick comparison of the 2 switches (with pics of the 2 installed) and point everyone to this switch as an alternative until I can get the OSRAM one working.

1 Like

@AdamV has a very successful device handler for the Popp battery-operated zwave switch that has double tap and dimming. Not sure if it has anything you can use directly, but it might give you some ideas.

[Release] Z-Wave.me, Popp, & Devolo Wireless wall Controller & Key Fob (EU), with button controller dimming apps and CoRE integration

Hey Guys! Big update on the device type!
I have been busy working on the Device Handler.

  • Hold Events are under development! I still have some work to do, but it is looking good.
  • Inverting the buttons is still a mess. For now I have commented out the code. This isn’t a big issue since the Device Type Handler treats the buttons as independent, but If I can add it, I will.
  • The device type is coming together nicely. I hope to have something that I can call a “Version 1” in about a week. A big thank you to to everyone that has purchased the device and used the DTH.
2 Likes

Ajpri,

Thanks for all the great work so far. I was looking into this and trying to see about the hold events. I know the raw messages that it sends when you have the hold and release events just trying to see how you are putting them into the device handler. As it looks like we are going to have to approximate the percent on the amount of time that the button is held down.

Up Button Tap

6:31:17 PM: debug Parse received zw device: 0D, command: 5B03, payload: 6C 00 01

Down Button Tap

6:32:09 PM: debug Parse received zw device: 0D, command: 5B03, payload: 6D 00 02

hold down, release up - Top Button

6:32:54 PM: debug Parse received zw device: 0D, command: 5B03, payload: 6F 01 01
6:32:50 PM: debug Parse received zw device: 0D, command: 5B03, payload: 6E 02 01

hold down, release up - Bottom Button

6:33:28 PM: debug Parse received zw device: 0D, command: 5B03, payload: 71 01 02
6:33:25 PM: debug Parse received zw device: 0D, command: 5B03, payload: 70 02 02

0x5B

class physicalgraph.zwave.commands.centralscenev1.CentralSceneNotification
{
Short key Attributes
Short sceneNumber
Short sequenceNumber
List payload

String format()
}

sequenceNumber = Button

1=top 2=bottom

sceneNumber = Tap, hold down, release up

00=Tap
02=hold down
01=release up

Thanks for the work! I’ve been working on this all I could and am close to getting hold events working. Most of it has been testing to ensure things are working. I’ll be releasing the first bit of code to support held events soon. The release events are next on my to do list.

Milestone 4 is here!
Held events are now working. The release events are also working, but not perfect.

Ajpri,

Thanks for the update. Looks good on adding the hold events. As far as getting it to work with dimming and other items I have found someone that has been working with another button but should be a good app to use with this. He has both code for his device handler and the smart app.

https://github.com/adampv/smartthings/blob/master/ButtonControllerWithDimmingDoubleClicksClickHolds.groovy

Josh

As far as getting it to work with dimming and other items I have found someone that has been working with another button but should be a good app to use with this.

That’s the same app that was already linked to 5 posts up. :wink:

Yes, I’m going to take a look into it and integrate it into the DTH. I think it should just be renaming the released. I mainly did that so I can experiment with dimming.

1 Like

Good News, everyone!

**I'm going to release Version 1 tomorrow!**

Great feedback from everyone! I’ve been using the DTH daily for my own bedroom, and testing is going marvelously. Just have some minor things to fix and It’ll be on the community.

1 Like

It’s here!

3 Likes