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

TS0601 motorized roller blinds position not updating (started with 1.18 release) #6601

Closed
ASNNetworks opened this issue Mar 6, 2021 · 12 comments · Fixed by Koenkk/zigbee-herdsman-converters#2354
Labels
problem Something isn't working

Comments

@ASNNetworks
Copy link

ASNNetworks commented Mar 6, 2021

What happened

I use this product: https://zigbee.blakadder.com/Moes_AM43-0_45_40-ES-EB.html. And with the latest Z2M update, the position does not update anymore. The service calls do still work fine, through Z2M GUI and also HA. I can open, close and set to a desired position. However, the current position is always stuck at 1 within Z2M. I also removed and paired the device again. This worked fine using 1.17 (both stable and dev branch). Using the latest 1.18 release (hassio addon) it now has this bug.

What did you expect to happen

The position needs to reflect the actual position, like before.

How to reproduce it (minimal and precise)

Set position, the roller goes to the desired position, but the state does not change within Z2M. Always stays at 1. It does briefly seem to flash to the correct number, but then stays at 1 again.

Debug info

Zigbee2MQTT version: 1.18.1-1
Adapter hardware: Conbee II
Adapter firmware version: latest

@ASNNetworks ASNNetworks added the problem Something isn't working label Mar 6, 2021
@playersct
Copy link

Yes, i have this same problem on CC2652p

@ithome89
Copy link

I have the same problem...

@Koenkk
Copy link
Owner

Koenkk commented Mar 10, 2021

Can you provide the debug log of this when changing the position?

See https://www.zigbee2mqtt.io/information/debug.html on how to enable debug logging.

@ASNNetworks
Copy link
Author

ASNNetworks commented Mar 11, 2021

Closing:

Debug Received MQTT message on 'zigbee2mqtt/Kleedkamer Gordijnen/set' with data 'CLOSE'
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[2],"type":"Buffer"},"datatype":4,"dp":1,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":7,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[2],"type":"Buffer"},"datatype":4,"dp":1,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,255],"type":"Buffer"},"datatype":2,"dp":105,"fn":0,"status":85,"transid":170}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,0],"type":"Buffer"},"datatype":2,"dp":3,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,0],"type":"Buffer"},"datatype":2,"dp":3,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":1,"fn":0,"status":170,"transid":2}' from endpoint 1 with groupID null

Opening:

Debug Received MQTT message on 'zigbee2mqtt/Kleedkamer Gordijnen/set' with data 'OPEN'
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0],"type":"Buffer"},"datatype":4,"dp":1,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0],"type":"Buffer"},"datatype":4,"dp":1,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0],"type":"Buffer"},"datatype":4,"dp":7,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,255],"type":"Buffer"},"datatype":2,"dp":105,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,100],"type":"Buffer"},"datatype":2,"dp":3,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,100],"type":"Buffer"},"datatype":2,"dp":3,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":1,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null

Setting to 47position:

Debug Received MQTT message on 'zigbee2mqtt/Kleedkamer Gordijnen/set' with data '{ "position": 47 }'
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,47],"type":"Buffer"},"datatype":2,"dp":2,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[2],"type":"Buffer"},"datatype":4,"dp":1,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":7,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,255],"type":"Buffer"},"datatype":2,"dp":105,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,47],"type":"Buffer"},"datatype":2,"dp":3,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,47],"type":"Buffer"},"datatype":2,"dp":3,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null
Debug Received Zigbee message from 'Kleedkamer Gordijnen', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":1,"fn":0,"status":0,"transid":0}' from endpoint 1 with groupID null

All end up as state: OPEN, position: 1 and running: true. The command themselves do work fine, it's just the state reported that is bugged now.

@Koenkk
Copy link
Owner

Koenkk commented Mar 11, 2021

@DomiStyle do you also have this issue with your curtain?

@ASNNetworks
Copy link
Author

Just to make sure it's clear, this is about the roller blind, not the curtains. Since they both have the TS0601 name, I figured to re-iterate. I saw you mention DomiStyle, who also chimed in on a thread about the TS0601 curtains before when that had a bug. The curtains are fine, it's the roller blinds with the issue now. Perhaps DomiStyle has the roller blinds as well and not only the curtains ofcourse. But I just wanted to make sure :)

@DomiStyle
Copy link
Contributor

DomiStyle commented Mar 11, 2021

@Koenkk Nope, works fine here with 1.18.1.

But I see the problem, DP 1 is treated as position here: https://github.com/Koenkk/zigbee-herdsman-converters/blob/91b494cf2a3f3cfd5aa210c0c112c5c89ade03a8/converters/fromZigbee.js#L1545

However, there is no position in DP 1, it always returns 0-2.

It works for me because DP 1 is reported before DP 3 (the actual position) but in the log above it gets returned last, setting the position to 1.

I'm not sure why or when this was changed but I can make a pull request for it.

@ASNNetworks
Copy link
Author

ASNNetworks commented Mar 11, 2021

This makes perfect sense. Because I can see the correct position flash very briefly as state before it changes to 1. So that explains it.

@blowbuh
Copy link

blowbuh commented Mar 16, 2021

Hi, my setup ist the following: Debian + Home Assistant (supervised) incl. AddOns (Z2MQTT + MQTT broker).

I've used the auto-discovery function and was able tu successfully implement this device. However, I cannot see any position data at all, I am not able to adjust this value. As soon as I try to move the position slider in my Z2MQTT add-on, nothing happens.

At least I can close and fully open it when I press the up and down arrows.

Is it this based on the bug described here or do I have to configure it manually to be be able to see and set position data?

@DomiStyle
Copy link
Contributor

@blowbuh It's possible. Can you try the latest dev version and see if it still happens? Also, what's your exact model?

@blowbuh
Copy link

blowbuh commented Mar 16, 2021

@DomiStyle thank you for your quick response. Was not even aware of the fact that there is a dev version for Home Assistant. However I've installed this version and deleted/reconfigured my device.

Its recognised as TS0601_cover which is correct I guess (some call it AM-43!?). However, I cannot change the position. Neither In Z2M nor in Home Assistant. I can move the slider and see the value changing accordingly in the state section, e.g.:

{
    "linkquality": 44,
    "motor_speed": 41,
    "position": 55,
    "running": true,
    "state": "OPEN"
}

but nothing happens (device does not react). Other functions are working as before (up, down, stop)

Log:
Info MQTT publish: topic 'zigbee2mqtt/0x5c0272fffeca9dcc', payload '{"linkquality":44,"motor_speed":41,"position":55,"running":true,"state":"OPEN"}'

Home Assistant Log:

2021-03-16 17:21:48 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: , template: {{ value_json.position }})
2021-03-16 17:21:48 WARNING (MainThread) [homeassistant.components.mqtt.cover] Payload is not integer within range: 

@ASNNetworks
Copy link
Author

ASNNetworks commented Mar 17, 2021

@DomiStyle The dev branch has fixed the issue for me (topic starter). The positions are reflected correctly now after a command. Also open/close/set position continues to work fine. Using the buttons on the controller itself also updates the state in Z2M, so all is perfect. I have this exact model: AM43-0.45/40-ES-EZ (TY) (says on the backcover).

Should I leave this ticket open for other users, or should other users create a new separate ticket since my mentioned issue is resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants