[OBSOLETE] MCO Z-Wave switch (DTH in post 31)

Just did the following

  • created the device handler
  • created the smart app
  • then linked the device to the device handler
  • created a simulated Zwave switch

Then

  • installed the smart app and linked my device to smart app button 1, linked the simulated device to smart app button 2

Then tried the 2 devices on ST… Nothing happens

@smart is resurrected,guys! Spent too much time on the freaking political drama and I am back! So, what’s up! :wink:

2 Likes

Welcome back buddy. It’s not so much of what’s up! But more like what’s broken!:disappointed:

1 Like

Evening alll

Has anyone managed to get MCO TOUCH PANELs working yet — 1gang / 2gang / 3gang / 4gang :slight_smile:

Eagerrrr to purchase these or similiar switches if anyone has any recommendations?!?

If not id be interested in crowd or fully (price dependant) funding the creation of this integration as i believe still its great product and 12months later st has made no progress in this field themselves :slight_smile:

@AutomateEverything @JDRoberts @Cedric @peter.major @Techvert
Have you got any solution for MCO 4 Gang Touch Panel.

Anyone sorted how to use all 4 switches of MCO Touch Panel using SmartThings ?

I really need help with this please. I’ve bought 10 pieces and got stucked by only being able to use 1 button automatically.

Thank You

Hi Omar

Good to hear that you’ve bought the MCO Z-Wave switch. I’ve got two-button and one-button switches in use in my house and they are great.

I’ve built custom device handlers to get them to work with SmartThings, as the default Multi-Channel device type written by SmartThings does not work with this switch.

Some good news and some bad news for you…

Bad news;

  • I didn’t write the four-button device handler because I don’t have any of those switches. Building a generic handler that handles all variants is possible but a bit more difficult.
  • They’re not particularly easy to set up. The fingerprint of the switches keeps changing, so the device handlers I wrote discover some switches and not others that I buy (I’m guessing they change the fingerprint with each small revision of the model)

Good news:

  • You can get these to work with SmartThings
  • I’ve written device handlers to work with the 1 button and 2 button switches (S312/S411/S412)
  • The 4xx series are great switches, the 3xx series aren’t so good. Hopefully you bought the 400 series…

These switches are hard to setup as they “encapsulate” each button (light) as a channel, all within a single device. Unfortunately different multi-channel devices encapsulate channels slightly differently. It’s been a while since I wrote the device handlers, but by memory SmartThing’s device handler uses the first channel for something and then uses channels after that for the buttons, where the MCO switch puts the button channels first, then uses the last channel for something else… That’s why the default SmartThings device type doesn’t work with this switch.

The switches work best one you set it us as one device for the switch, and one device for each button on the switch.

This sounds a bit counter-intuitive, but it’s best to consider the actual switch to be a different node from the each button.

Then you need a smart app that listens for a command on a “channel” of the switch and converts that to a command to the external device (light).

Here is a device handler I’ve written:

And here is the related smart app:

If the fingerprint is right, then SmartThings uses the correct device handler as soon as it sees it. But if MCO switch has a fingerprint I haven’t seen before, then it would install as a Multi-Channel device type and I change the device type in the SmartThings web app.

The above device handler won’t work out of the box with a four-button switch, but if you’re a good programmer or you know someone who is, they should be able to modify this device handler and smart app for you.

Let me know how it works out.

Kind Regards,
Peter

@peter.major @Techvert @JDRoberts @Cedric @AutomateEverything

Hi,

I’ve made a device handler for MCO 4 button switch and its working perfect for me as an each individual button in ST. Attaching my code below.
I can control (on/off) all 4 switched via ST. However can’t control via Alexa each individually. Alexa is controlling all 4 of them as 1. My MCO 4 Button switch is 300 series. But am asumming the same coding works for all.

I think it’s because MCO switch in ST combines all 4 switches in one ‘app’ (see pic attached). Whereas these all 4 switches should show in “MY HOME” section.

I hope am sounding right and making sense. Please try my code ones by yourself, you’ll clearly get what I mean.


Hi Omar

Good job getting the device handler working with the 4 button switch.

I use Amazon Echo to control my lights from the multi-button switch.

The key to getting this working is the diagram I posted earlier.

You should create four “virtual switch” devices. Each virtual switch represents one button on the actual switch.

Never turn on or off lights (in Smart Apps or Amazon Echo) with the actual switch. Always use the virtual switches.

You will need the smart app (see the app attached above) that listens on the virtual switches, and sends encapsulated commands back to the actual switch.

Additionally, the app will watch for encapsulated commands on the actual switch and update the state of the virtual switches.

I hope that helps. Let me know if that’s not clear…

2 Likes

Hi guys

I am new to smartthings. I just bought a few gr smarthome a switches similar to mco. They are 2 and 3 switch and I have the same issue.

Can you give me how do I install the device handlers you have written or how can I create my own. At the moment smartthings just detects it as Zwave multi channel device

Does anyone knows a good place to buy MCO-Touch-Panel-2, ebay and amazon they are almost 100€ :frowning:

Hi Peter,

I have installed your device handler and smartapp for the MCO switch, but I’m unable to get it to work correctly.

When I press on the physical button on the switch, nothing happens even though I’ve bound the switch to a device through your smartapp.

However, when I press refresh on the MCO Panel device, then the connected light turns on or off.

How can I get the switch to refresh or update automatically?

Thanks

Hi Peter,

Thanks for sharing the codes, I am new here and managed to setup a 2 gang switch. Please bare with me for a few questions.

  1. Why is there a need for 1 button handler and smartapp? I suppose the handler is to auto detect the device type, but we can always change manually to ‘Z-Wave Switch’. But what’s the purpose of the 1 button smartapp?
  2. How can I find the fingerprint of the switch? I am using 312 but can’t seem to be auto detected. Please share with me how can I find out the fingerprint so that I can modify accordingly.
  3. By any chance you can provide the 4 gang handler and smartapp?

Thanks Peter

I also bought the MCO 2 gang 312 and 4 gang 314 light switch facing the same problem.
Able to control on/off via smartthings app but when physically switch on and off, it does not reflect on the app.

I have already flagged this issue to MCO and they have already bought a ST hub for testing and trying to make it work.
Hopefully we can see some magic soon.
I am not a programmer thus i am not able to provide any insights to MCO or assist with any coding.

Really hope to see these beautiful switches works with smartthings seamlessly.

1 Like

I use CoRE to refresh every minute.

Peter,

Thank you for your device Handler and Smart App it works beautifully and seamlessly, I particularity liked the diagram you supplied to accompany your instructions it made the logic a lot easier to understand.

Having recently bought the MCH Home Dual gang switch and assumed that the multi channel device handler would suffice I forgot to check if ST supported it. So your programming has saved the day as these switches are not the cheapest to make mistakes with. It’s good folk like you sharing your ideas and efforts that really make the ST owners experience a great one.

Thank you
R

Hi Omar,

Thanks for the device handler, it works for MCO touch panel S312 (2 gang) as well.
however, i am facing the same problem as you are. can’t get Alexa to control individual switch.
I tried the smart app provided by peter with your device handler. but the virtual device is not controlling the actual switch.
I wonder if you already solve the problem? do you mind sharing your solution?
I am not a programmer, i do not understand the code in your program. i can only rely on the instructions given by professionals like you guys,
Thanks again for your hard work.

Jaster

Hi Peter,

First of all, thanks for your work.
I was panic when i realize ST only control the first switch of the 2 channel MCO touch panel.
Then I googled the found this community. This is the most useful page so far.
I use your device handler and the smart app. The device handler allows me to control both switch with 1 button.
However i can’t set smart app right.
I created 2 more devices and named it FAN and LIGHT.
I Selected FAN to control button 1 of MCO touch panel. I leave button 2 empty.
I tried but I was unable to control the button 1.
Did I missed anything?

Appreciated your work. your work really help us (non-programmer) a lot.
Thanks

Jaster

Hi Peter,

I was wondering how do you obtain the fingerprint?

I am using S312, S411 and S314. I see you have both the S312 and S411 available. I can modify it for S314 if I can figure out how to obtain the fingerprint

With the 4 button S314, I seem to only get ‘BasicSet’ commands from the physical buttons on the switch itself, and only for button 1. The encapsulated commands work well for turning on via ST or smartapp - that status is reflected on the physical switch.

I’m at a bit of a loss, does the device itself only send a Z-Wave command for button 1? Any ideas @peter.major ? Does your 300 series work this way?

With some horrible hacking of @omar_shahbal 's device handler and @peter.major 's smartapp, and with some zwave tweaking, I’ve managed to get this to work with the 4 button MCO switch. Works both ways:

  • Pressing any button on the device turns on/off the associated device or simulated switch
  • Turning on/off the associated device turns on/off the physical button.
  • Everything can be controlled via Google Home (and so presumably Alexa)

In my setup to get a neutral at the box I’ve only got button 1 wired to an actual circuit. Buttons 2, 3, and 4 are being used for other lights in the room via SmartThings but are not physically wired to the switch.

I’ll make the code a lot less hacky and publish it somewhere crediting Omar & Peter.