Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Tuya Blind Motor - Recognised as TS0601 #5596

Closed
milobt opened this issue Jan 6, 2021 · 74 comments
Closed

Support for Tuya Blind Motor - Recognised as TS0601 #5596

milobt opened this issue Jan 6, 2021 · 74 comments
Labels
new device support New device support request

Comments

@milobt
Copy link

milobt commented Jan 6, 2021

Information about the device + link

https://www.aliexpress.com/item/1005001775235402.html?spm=a2g0s.9042311.0.0.24644c4dOe24TO

data/database.db entry of the device

{"id":22,"type":"EndDevice","ieeeAddr":"0x5c0272fffeca9e6c","nwkAddr":5763,"manufId":4098,"manufName":"_TZE200_rddyvrci","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS0601","manufacturerName":"_TZE200_rddyvrci","powerSource":3,"zclVersion":3,"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[],"meta":{}}},"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1609436887877}

Log:
Zigbee2MQTT:debug 2020-12-31 17:48:07: Received Zigbee message from '0x5c0272fffeca9e6c', type 'readResponse', cluster 'genBasic', data '{"stackVersion":0}' from endpoint 1 with groupID 0 Zigbee2MQTT:debug 2020-12-31 17:48:07: Skipping message, definition is undefined and still interviewing Zigbee2MQTT:debug 2020-12-31 17:48:07: Received Zigbee message from '0x5c0272fffeca9e6c', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID 0 Zigbee2MQTT:debug 2020-12-31 17:48:07: Skipping message, definition is undefined and still interviewing Zigbee2MQTT:debug 2020-12-31 17:48:07: Received Zigbee message from '0x5c0272fffeca9e6c', type 'readResponse', cluster 'genBasic', data '{"dateCode":""}' from endpoint 1 with groupID 0 Zigbee2MQTT:debug 2020-12-31 17:48:07: Skipping message, definition is undefined and still interviewing Zigbee2MQTT:debug 2020-12-31 17:48:07: Received Zigbee message from '0x5c0272fffeca9e6c', type 'readResponse', cluster 'genBasic', data '{}' from endpoint 1 with groupID 0 Zigbee2MQTT:debug 2020-12-31 17:48:07: Skipping message, definition is undefined and still interviewing Zigbee2MQTT:info 2020-12-31 17:48:07: Successfully interviewed '0x5c0272fffeca9e6c', device has successfully been paired Zigbee2MQTT:warn 2020-12-31 17:48:07: Device '0x5c0272fffeca9e6c' with Zigbee model 'TS0601' and manufacturer name '_TZE200_rddyvrci' is NOT supported, please follow https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html Zigbee2MQTT:info 2020-12-31 17:48:07: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":null,"friendly_name":"0x5c0272fffeca9e6c","ieee_address":"0x5c0272fffeca9e6c","status":"successful","supported":false},"type":"device_interview"}'

@milobt milobt added the new device support New device support request label Jan 6, 2021
@d-edge82
Copy link

I have the same curtain motor (returned the unsupported livolo one)
@Koenkk please advise

@Koenkk
Copy link
Owner

Koenkk commented Jan 11, 2021

@d-edge82
Copy link

@d-edge82 see https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html

Thanks!
Managed to connect it, now I am struggling with it's behaviour..
Clicking "Down" on HA opens the curtain, "Up" does nothing and "Stop" closes it..

Any idea?

@milobt
Copy link
Author

milobt commented Jan 11, 2021

I got the same result after connecting, I figured it might be because I haven’t yet configured the up and down stopping points, but still might be an error in the Z2M profile.

@Koenkk
Copy link
Owner

Koenkk commented Jan 11, 2021

Try adding it to model: 'TS0601_roller_blind', instead of model: 'TS0601_curtain',

@d-edge82
Copy link

Try adding it to model: 'TS0601_roller_blind', instead of model: 'TS0601_curtain',

Can you please explain where I need to change it?
I am on Hassio with the latest Z2M (edge does not recognize the device)

@Koenkk
Copy link
Owner

Koenkk commented Jan 11, 2021

@d-edge82 can you provide the data/database.db entry of it?

@d-edge82
Copy link

Is this what you are after?

{"id":2,"type":"EndDevice","ieeeAddr":"0x5c0272fffecc0047","nwkAddr":44405,"manufId":4098,"manufName":"_TZE200_rddyvrci","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS0601","manufacturerName":"_TZE200_rddyvrci","powerSource":3,"zclVersion":3,"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1610387106467}

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Jan 11, 2021
@Koenkk
Copy link
Owner

Koenkk commented Jan 11, 2021

Can you try if it is fixed now?

Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)

@d-edge82
Copy link

Cool, thanks!

Dev-branch means edge edition of the add-on, right?
I tried that a few days ago and it did not recognize the device,
Does this mean it will be recognized if I update it tomorrow morning?

@Koenkk
Copy link
Owner

Koenkk commented Jan 11, 2021

@d-edge82 should be, first uninstall and install again

@d-edge82
Copy link

OK, waited, uninstalled and installed back again
I now see it shows up as roller_blind, but the issue is still there:

Stop: Closes the curtain
Up: Opens
Down: Stop

image

Should I wait longer?

@Koenkk
Copy link
Owner

Koenkk commented Jan 12, 2021

@milobt is it working for you?

@milobt
Copy link
Author

milobt commented Jan 13, 2021

@Koenkk on edge I get the same @d-edge82. Although, I believe the operations to be as follows:

Lovelace Button <-> Blind Operation
Up <-> STOP
Stop <-> DOWN
Down <-> UP

@rbrueckner82
Copy link

same issue

Button

OPEN / doesn't work
CLOSE / open the blind
POSITION / doesn't work

the warning are at log when i start any event.

WARNING: owvfni3: Unhandled DP #105: {"status":0,"transid":0,"dp":105,"datatype":2,"fn":0,"data":{"type":"Buffer","data":[0,0,0,40]}}

image

@milobt
Copy link
Author

milobt commented Jan 14, 2021

I also find that position does not work at all.

Furthermore, considering that these motors run on batteries it would be useful if battery level was available on one of the endpoints.

@DomiStyle
Copy link
Contributor

DomiStyle commented Jan 14, 2021

@milobt Does setting the position not work or receiving the position?

Judging by the warning @rbrueckner82 posted, receiving position can't work yet.

@d-edge82
Copy link

d-edge82 commented Jan 15, 2021

This is the current status for me (on Edge):

Z2M web:
Position - works fine.
Close=Stop
Open - Works.
0 = Open
100 = Closed (wish it was the other way around)

On HA the behavior is as following:

Stop = Close
Up = Open
Down = Stop

Position works.

Thanks for the support @Koenkk !

@eric-zimmer
Copy link

Hello, I have got the same zigbee blind motor. I am not able to pair it with zigbee2mqtt (HA) or deconz. How did you do this? Also I have a tuya gateway, also with this I cannot connect the motor. How can I put the device into pairing mode? I haven't found anything for this in the instruction

@d-edge82
Copy link

Hello, I have got the same zigbee blind motor. I am not able to pair it with zigbee2mqtt (HA) or deconz. How did you do this? Also I have a tuya gateway, also with this I cannot connect the motor. How can I put the device into pairing mode? I haven't found anything for this in the instruction

Hi Eric,

Hold the down button along with the set, this should reset the device and enter pairing mode

@eric-zimmer
Copy link

Hi, thank you for your fast answer. I thought it need to flash, it doesn't but it connected to deconz, so it should work with z2m, will try this next. thank you.

DomiStyle added a commit to DomiStyle/zigbee-herdsman-converters that referenced this issue Jan 15, 2021
Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Jan 16, 2021
* Fix Tuya cover inversion for Zemismart ZM79E-DT

* Merge Tuya covers and make them configurable

* Add functions to export

* Fix Lint complaints

* Fix undefined manufacturerName

* Shorten some lines

* Changes

* Add Zemismart ZM79E-DT to state overrides

* Don't invert position for _TZE200_rddyvrci

See Koenkk/zigbee2mqtt#5596 (comment)

* Add manufacturerName to debug message

* Fix incorrect manufacturerName being passed

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
@Koenkk
Copy link
Owner

Koenkk commented Jan 16, 2021

Can you guys check out the latest dev branch and see if it's fixed there? (@DomiStyle did some fixes here)

Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)

@d-edge82
Copy link

d-edge82 commented Jan 16, 2021

Can you guys check out the latest dev branch and see if it's fixed there? (@DomiStyle did some fixes here)

Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)

Just tried;
Close = Close.
Open = stop.
And I have no other options.

Position:
100 = Open
0 = Closed.

Should I try again in a few hours?

image

DomiStyle added a commit to DomiStyle/zigbee-herdsman-converters that referenced this issue Jan 25, 2021
* Reverse open and stop for _TZE200_rddyvrci

See Koenkk/zigbee2mqtt#5596 (comment)

* Add motor speed configuration for Tuya covers

* Add Zemismart AM43

* Add coverSpeed DP

* Add support for setting and receiving motor speed for Tuya covers

* Fix lint issues

* Add motor speed to Tuya cover exposes
@DomiStyle
Copy link
Contributor

@joseant Should work once Koenkk/zigbee-herdsman-converters#2150 is merged.

@JAJBrouwers
Copy link

Hello there,

I also have a cover blind on zigbee2mqtt, the only thing that's not working is the "state" it's unknown all the time... When I follow the documentation and publish a message to get the state nothing happens.

And that option for the motor speed, is that only in the dev branche? Because I don't have that option.

Thx in advanced, Jeroen

@DomiStyle
Copy link
Contributor

@JAJBrouwers The fix for the state is not merged yet.

The option for motor speed is only available in dev and only works for supported devices.

@JAJBrouwers
Copy link

Oke then, thx for you're feedback, I have the normal version, when I take the Dev add-on... Do I need to install everything again?

@DomiStyle
Copy link
Contributor

@joseant Can you try again with the latest dev version? Everything should work out of the box now.

@joseant
Copy link

joseant commented Jan 26, 2021

@DomiStyle
Hello.
I have switch to the dev branch: https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html
But I can't see the changes yet

@joseant
Copy link

joseant commented Jan 27, 2021

@DomiStyle
I have now tried the dev branch and everything has worked fine

imagen

@JAJBrouwers
Copy link

Nice, how do I get this update without using the Dev branche? Will there be a update or something?

@DomiStyle
Copy link
Contributor

@JAJBrouwers Yes, once the next update releases it will be available without dev branch.

Since everything works I guess this can be closed now @Koenkk @milobt.

@Koenkk Koenkk closed this as completed Jan 28, 2021
@JAJBrouwers
Copy link

Hi there I have just installed the dev branch, I get the option for the motor speed... when I set it and hit apply, nothing changes. for the state value, it still does not report back open or close.

@leroyloren
Copy link

Hi, same problem. Motor speed does not respond to change. For example, Setting motor speed to 34 is displayed in the log, but after the reload it is still 0 and the speed remains the same.

@DomiStyle
Copy link
Contributor

@leroyloren Which model are you using? Changing motor speed is not supported for all.

If you do not receive a response from the motor it's most likely not supported or needs a different command.

@leroyloren
Copy link

Zemismart M515EGB

obrazek

obrazek

obrazek

obrazek

@JAJBrouwers
Copy link

I have the same model, you experience also no state change

@DomiStyle
Copy link
Contributor

DomiStyle commented Feb 7, 2021

@leroyloren @JAJBrouwers The only model we know for sure supports setting the motor speed is _TZE200_zah67ekd (Zemismart AM43), so I would assume your model just doesn't support it.

@leroyloren
Copy link

Well, the weird thing is that until the motor is configured, it runs very slowly and quietly. But I understand if it can't be set.

@JAJBrouwers
Copy link

@leroyloren
That's normal

@JAJBrouwers
Copy link

@leroyloren

You have the same model as me, does yours also report only "running" is "true"?

@leroyloren
Copy link

yep,
obrazek

@JAJBrouwers
Copy link

Oke, then it is not my only problem 😅, so you don't have the state report back.

@DomiStyle made a fix maby, but I can't test it.

@d-edge82
Copy link

d-edge82 commented Jun 6, 2021

Hi There!

After one of the latest updates - the motor no longer publish the "Cover" entity.
I can only see the LQI..

image

Any idea?

@DomiStyle
Copy link
Contributor

@d-edge82 Update to 1.19.0.

#7680

@d-edge82
Copy link

d-edge82 commented Jun 6, 2021

@d-edge82 Update to 1.19.0.

#7680

Thanks! it worked.
How was I to know the repo has changed??

@nickwild-999
Copy link

nickwild-999 commented Mar 16, 2022

Sorry to resurrect an old issue, but can a battery endpoint be added to this device. It would be really useful .

EDIT: just seen the issues on this here #7630

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new device support New device support request
Projects
None yet
Development

No branches or pull requests