Open sadanro100 opened 1 year ago
Let me simplify the logs and convert it to state change:
When you close the blind (from another platform?):
{ wireless_awake: false } // ignore
{ percent_state: 100 }
{ percent_state: 0 }
When you open the blind:
{ control: open }
{ percent_state: 100 }
From curtain documentation: https://developer.tuya.com/en/docs/iot/f?id=K9gf46o5mtfyc
control
represents for turn on/off the curtain
percent_state
represents for the percent state, 0
for fully closed, 100
for fully opend, I guess.
It's weird that no { control: close }
received, can you upload the device info json, I want to see if the range of your device's control
schema is correct.
Hi there, I'm really sorry for the delay to reply.
"(from another platform?):"
Yes, I controlled it from Tuya app to see what states would be picked up by the plugin, and the logs are from that.
"can you upload the device info json"
Do you mean Tuya IOT > API Explorer > Smart Home Device System > Device Management > Get device details? If so, here you go:
{
"result": {
"active_time": 1654712805,
"biz_type": 0,
"category": "cl",
"create_time": 1653365034,
"icon": "smart/icon/ay1535532217868NsRD0/d303688e83885c9920b0b2dcf3872aa3.png",
"id": "eb2711cb0da5df89e8ihmb",
"ip": "189.68.245.196",
"lat": "-23.6064",
"local_key": "0837d81abc2d9073",
"lon": "-46.6592",
"model": "",
"name": "Sacada",
"online": true,
"owner_id": "70503222",
"product_id": "jzmy5ut0vishwscm",
"product_name": "zemismart curtain motor",
"status": [
{
"code": "control",
"value": "close"
},
{
"code": "percent_control",
"value": 26
},
{
"code": "percent_state",
"value": 30
},
{
"code": "control_back_mode",
"value": "forward"
},
{
"code": "work_state",
"value": "opening"
},
{
"code": "situation_set",
"value": "fully_open"
},
{
"code": "fault",
"value": 0
}
],
"sub": false,
"time_zone": "-03:00",
"uid": "az1651931460713uDVji",
"update_time": 1670074686,
"uuid": "74b8e7c2e8e1c6d8"
},
"success": true,
"t": 1671649449016,
"tid": "3f6d7d24816211ed8bf3266109e39bbb"
}
It's okay, I'm also busy these days, I locate see this issue after chrismas. Thanks.
I've changed the piority order when getting current state, percent_state
> control
, please have a try.
Hi, it doesn't seem to have helped. It shows as "opening..." (indefinitely) when I close it from tuya app.
OK... So what's the last status when your blind is fully closed/opened? I guess percent_control
and percent_state
should equals to 0 or 100 when they are stopped.
https://developer.tuya.com/en/docs/iot/s?id=K9gf48r5zjsy9
The mainly problem is the documentation is not detailed enough, and I want to fully understand the mean of control
, percent_control
and percent_state
these 3 datapoints. Is it convient for you to use tuya website device debugging tool, and have some try using web to control the device?
https://github.com/0x5e/homebridge-tuya-platform/issues/179#issuecomment-1367086209
I guess my thoughts for percent_control
is wrong, please have a test. the closing and opening process is not avaliable with the virtual device to testing.
Hi, just updated to v1.7.0-beta.18.
I've got 4 motors, one of them is set to Forward and the resto to Back. The one that is set to Forward seems to be working fine, the rest have inconsistent statuses, they don't update their status when configured from Tuya app and when they do work, they are inverted, if the curtains are closed, they are displayed as opened and all the behaviour is inverted as well. When they do pick status changes because I changed from Tuya app or Alexa, they stay in closing... or opening... states indefinitely.
I'm going to revert of the "reverse motor state": https://github.com/0x5e/homebridge-tuya-platform/issues/179#issuecomment-1367922879
After beta.20 (not released yet), if some of your motor has wrong on/off state, please use manual config: https://github.com/0x5e/homebridge-tuya-platform/blob/develop_1.7.0/ADVANCED_OPTIONS.md#reverse-curtain-motors-onoff-state
for the infinite opening/closing issue, can you help me verify the last state?
OK... So what's the last status when your blind is fully closed/opened? I guess
percent_control
andpercent_state
should equals to 0 or 100 when they are stopped.
Hi there, I've got a few Zemismart blind motors here and made a few tests regarding their state. It seems like it's being reported incorrectly when changing their state from another platform, such as Tuya Alexa skill or Tuya app.
Here is an example, in this case I was changing it from Open to Close, status only got updated once the cover closed completely and it went from:
to:
it remained "Opening..." while it was closed until I opened it again, it then went back to "Open".
Here are the logs for when I closed them, (I think this only came through once the blind closed completely):
and here are the logs for when I opened them again:
Let me know if there's anything else I can do to help. Thanks