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

Switch status incorrect #107

Closed
Stef1972 opened this issue Sep 19, 2021 · 3 comments
Closed

Switch status incorrect #107

Stef1972 opened this issue Sep 19, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@Stef1972
Copy link

Describe the bug
If I turn off a tuya switch using Alexa it appears correctly turned of in Samrtlife but it remains like turned on in homebridge. I need to press twice on the accessory on HB to turn it on again (the first one to turn it off in homebridge and the send to turn it on)

Expected behavior
I expect that the accessory on HB result on or off as it is in smart life app

Screenshots
If applicable, add screenshots to help explain your problem.

Device info (please complete the following information, which can be found in log):
request path = /v1.0/iot-01/associated-users/devices

like this:
{
"active_time": 1623229189,
"biz_type": 18,
"category": "cz",
"create_time": 1560491945,
"icon": "smart/product_icon/cz.png",
"id": "aaaaaaaaaaa",
"ip": "xxxxxxxxxxxxxxxx",
"lat": "30.30286857361191",
"local_key": "xxxxxxxxxxxxx",
"lon": "120.0639743842656",
"model": "",
"name": "Living Room Socket",
"online": false,
"owner_id": "34794909",
"product_id": "yfemiswbgjhddhcf",
"product_name": "Switch Product",
"status": [
{
"code": "switch",
"value": false
},
{
"code": "countdown_1",
"value": 0
},
{
"code": "cur_current",
"value": 0
},
{
"code": "cur_power",
"value": 0
},
{
"code": "cur_voltage",
"value": 2343
}
],
"sub": false,
"time_zone": "+08:00",
"uid": "xxxxxxxxxxxxxxxxxxx",
"update_time": 1625101929,
"uuid": "xxxxxxxxxxxxxxxxxx"
}

Device functions (please complete the following information, which can be found in log):
request path = /v1.0/devices/functions
Same device Id, like this:
{
"category":"cl",
"devices":[
"aaaaaaaaaaa"
],
"functions":[
{
"code":"control",
"desc":"control",
"name":"control",
"type":"Enum",
"values":"{"range":["open","stop","close"]}"
},
{
"code":"percent_control",
"desc":"percent control",
"name":"percent control",
"type":"Integer",
"values":"{"unit":"%","min":0,"max":100,"scale":0,"step":1}"
},
{
"code":"control_back",
"desc":"control back",
"name":"control back",
"type":"Boolean",
"values":"{}"
}
],
"product_id":"xaabybja"
}

Additional context
Add any other context or logs about the problem here.

@Stef1972 Stef1972 added the bug Something isn't working label Sep 19, 2021
@github-actions
Copy link

Thank you for your feedback, we will solve this issue soon

@oliverchapple
Copy link

oliverchapple commented Oct 3, 2021

I got the same issue now when I say Alexa turn on light it comes on home app but not turn the light on.

it was working last week

thanks Oliver

@Hanh94
Copy link
Contributor

Hanh94 commented Nov 3, 2021

Hi guys, Sorry for the late reply.
Please see #117 (comment)

@Hanh94 Hanh94 closed this as completed Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants