Moes Curtain Switch

Hi guys. My name is Reuven and I am very new in hubitat and confused a little bit.
I bought curtain switch from AliExpress - Moes Curtain Switch ZigBee +rf remote.
I know it is not supported and i need custom driver/app.
I successfully connect to switch but that's it.
How can i control the switch via Hubitat?
Do i need driver or app? Or both?
What are the difference between them?
I know coding in Arduino but not in groovy.
Thanks and best regards.

Welcome!

There are a few exceptions but in general, a driver is the code that handles the communication between the device and the hub, an app may be many things but is commonly used to communicate to a set of multiple drivers (and thus multiple devices).

Couple of questions for you to clarify your current state.

  1. What device type (driver) did the switch get at pairing?
  2. From the device page do you have any control at all?

Hi. Thanks for replying.

  1. Hub selects:
    Type : Device
  2. I don't have any control. Configure not working
    I added some pictures

This device uses Tuya specific Zigbee cluster, so the inbuilt HE standard drivers will not work with it.

A custom driver can be available after a month or two, except someone else is willing to try making it.

@Reuven actually , have you tried the [RELEASE] Zemismart Zigbee Blind Driver ?

@kkossev Thanks for replay.
You are right this driver works fine , i read from your past forum replies how to search driver :slight_smile:
But i can't control the switch from dashboard.
There is a question mark on the dashboard.
Now i changed it to "scene" and i have on and off buttons which are work but the opposite way.
On - Closes and off - opens......

1 Like

Hi @Reuven , I am glad that there is a progress with your device control from HE.
There is enough information for _TZE200_nhyj64w2 on the net, so the remaining issues can be resolved one by one.

This usually happens when the HE dashboard device is no longer available, i.e. has been deleted or changed after it was added to the dashboard. Just delete this tile and check whether the correct device name is present in the list of the authorized devices ( HE Apps-> Hubitat Dashboar->Choose devices). Make sure in the dashboard the curtain switch is using the 'shade' template.

Is your switch controlled correctly when you click on Open and Close buttons from the device web page? Does 'Set Position 25%' command work?

Hi @kkossev , sorry for very late reply.
I received moes switches with multiple gangs and thanks to you ( your old replies ) they are all working great.
About blinds...

  1. 25% command not working and it will be great if you can tell me the commands in below picture.
  2. In dashboard there is only two options exist ; on and off , there is no pause.... ( in scene temp. )
  3. Shade template not working / responding.

Best regards,

Hi @Reuven ,

The screenshot above is not from the latest 'Zemismart Zigbee Blind' driver version.
Which driver are you using?

Hi.
I hope these help...


Sorry, I can't help much with these drivers, I don't know them...

Isn't the Zemismart Zigbee Blind Driver working with your switch?

Actually, the currently supported ' Zemismart Zigbee Blind Driver' is based on the iquix driver from your screenshot, but there are a lot of changes and improvements since this first version from 2020.

@kkossev
No problem thanks.

I found this driver : ZemiSmart Battery Vertical Blind Motor by MarcusVR and it works kind of ok with "shade". The problems are:

  1. I don't know how to set up / teach to hubitat limits of the blinds
  2. When the blinds opened on dashboard it shows closed.



For me level 0 is fully close and level 22 is fully open

You have to find out how to setup the upper and lower limits of your device first, so that ‘fully open’ corresponds to 100%. This setup is done not in the driver, but in the device itself using the switch buttons probably.

Do you have a PDF with instructions on how to install the blinds switch? Or a printed leaflet which came with the device?

@kkossev
Hi There's nothing written about upper or lower limit. Maybe i can change the limit in driver and "mapping" it to 0 to 100?

Is your device this one ?
https://www.aliexpress.com/item/1005003311312070.html

@kkossev

yes :slight_smile:

@kkossev anything new?

Hi @Reuven ,

Use this dev. branch version of the Zemismart Zigbee Blind driver :

https://raw.githubusercontent.com/amosyuen/hubitat-zemismart-zigbee/development/Zemismart%20Zigbee%20Blind.groovy

Press the Configure button first, then turn on the "Show Advanced options", save, turn on all the "Enable debug logging *", "Enable trace logging" and "Log unexpected messages " and save the preferences again.

There should be a new button "Calibrate" :
image
Select from the dropdown menu the first command and enter the calibration time in seconds and click on the same button.

I will need the debug logs, when you change the calibration time. Please try to copy the text and paste it here. You can use the forum editor cog wheel "summary" function to hide the long logs.

There are also two other commands moesCalibrationOn and moesCalibrationOff that I am not quite sure how these will work. See the instructions here : Moes ZTS-EUR-C control via MQTT | Zigbee2MQTT

Hi @kkossev
I hope this helps and thanks again

Summary

dev:692022-12-24 13:10:20.396warnParent Bedroom Moes Curtain Switch parse: Not a Tuya Message descMap=[raw:9D5E0100001801002044E2FF201FE4FF2000, dni:9D5E, endpoint:01, cluster:0000, size:18, attrId:0001, encoding:20, command:0A, value:44, clusterInt:0, attrInt:1, additionalAttrs:[[value:1F, encoding:20, attrId:FFE2, consumedBytes:4, attrInt:65506], [value:00, encoding:20, attrId:FFE4, consumedBytes:4, attrInt:65508]]]

dev:692022-12-24 13:09:21.368warnParent Bedroom Moes Curtain Switch parse: Not a Tuya Message descMap=[raw:catchall: 0104 0102 01 01 0040 00 9D5E 00 00 0000 01 01 03F086, profileId:0104, clusterId:0102, clusterInt:258, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:9D5E, isClusterSpecific:false, isManufacturerSpecific:false, manufacturerId:0000, command:01, direction:01, data:[03, F0, 86]]

dev:692022-12-24 13:09:21.210warnParent Bedroom Moes Curtain Switch parse: Not a Tuya Message descMap=[raw:catchall: 0104 0102 01 01 0040 00 9D5E 00 00 0000 04 01 8603F0, profileId:0104, clusterId:0102, clusterInt:258, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:9D5E, isClusterSpecific:false, isManufacturerSpecific:false, manufacturerId:0000, command:04, direction:01, data:[86, 03, F0]]

dev:692022-12-24 13:09:21.051debugParent Bedroom Moes Curtain Switch sendZigbeeCommands (cmd=[he wattr 0x9D5E 0x01 0x0102 0xF003 0x21 {0096} {}, delay 200, he raw 0x9D5E 1 0x01 0x0102 {10 00 00 03 F0}, delay 200])

dev:692022-12-24 13:09:21.049warnParent Bedroom Moes Curtain Switch calibrate: executed setMoesCalibrationTime(15)

dev:692022-12-24 13:09:21.044warncalibrate moesCalibrationTime 15

dev:692022-12-24 13:08:19.530debugParent Bedroom Moes Curtain Switch updateWindowShadeArrived: position=0

1 Like

Please update to the new version "3.3.0 (test branch) - 2022-12-26 8:49 AM" and check whether these 4 commands have any effect (will need the debug logs again)

image