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

tuya component for climate use gateway #24570

Closed
linlingzi opened this issue Jun 17, 2019 · 3 comments
Closed

tuya component for climate use gateway #24570

linlingzi opened this issue Jun 17, 2019 · 3 comments

Comments

@linlingzi
Copy link

linlingzi commented Jun 17, 2019

I use air conditioning gateway, here are five air conditioning controller, tuya component can only find the first air conditioning controller, and conditioning conroller state is correct, but can't control it.
Please tell me how to read all the air conditioning, thank you
https://www.home-assistant.io/components/tuya/
my post :
{
"header": {
"name": "5",
"namespace": "discovery"
},
"payload": {
"accessToken": "AYhay1550826341565mSS5Kotq4BYpisq",

        }

}

response:
{
"payload": {
"devices": [
{
"data": {
"mode": "cold",
"current_temperature": 0,
"min_temper": 0,
"temperature": 25,
"max_temper": 50,
"online": true,
"state": "false",
"support_mode": [
"cold",
"hot",
"wind",
"auto"
],
"temp_unit": "CELSIUS"
},
"name": "空调组",
"icon": "https://images.tuyacn.com/smart/icon/15470340230n9xlqqraae_0.png",
"id": "20858526807d3a76822f",
"dev_type": "climate",
"ha_type": "climate"
}
],
"scenes": []
},
"header": {
"code": "SUCCESS",
"payloadVersion": 1
}
}

@linlingzi linlingzi changed the title tuya tuya component for climate use gateway Jun 17, 2019
@PaulAnnekov
Copy link
Contributor

I'm not responsible for their API, but I can make assumptions.
First of all, try to make a POST request like this:

{
  "header": {
    "Content-Type": "application/json",
    "name": "Discovery",
    "namespace": "discovery",
    "payloadVersion": 1
  },
  "payload": {
    "accessToken": "[your access token]",
  }
}

to https://px1.tuyaus.com/homeassistant/skill. What do you get?

Also try to POST to https://px1.tuyacn.com/homeassistant/skill and https://px1.tuyaeu.com/homeassistant/skill (other regions). What do you get?

@linlingzi
Copy link
Author

I'm not responsible for their API, but I can make assumptions.
First of all, try to make a POST request like this:

{
  "header": {
    "Content-Type": "application/json",
    "name": "Discovery",
    "namespace": "discovery",
    "payloadVersion": 1
  },
  "payload": {
    "accessToken": "[your access token]",
  }
}

to https://px1.tuyaus.com/homeassistant/skill. What do you get?

Also try to POST to https://px1.tuyacn.com/homeassistant/skill and https://px1.tuyaeu.com/homeassistant/skill (other regions). What do you get?

thanks for your reply.
I have already done so
Now i can get as the following information:
{
"payload": {
"devices": [
{
"data": {
"mode": "cold",
"current_temperature": 0,
"min_temper": 0,
"temperature": 25,
"max_temper": 50,
"online": true,
"state": "false",
"support_mode": [
"cold",
"hot",
"wind",
"auto"
],
"temp_unit": "CELSIUS"
},
"name": "空调组",
"icon": "https://images.tuyacn.com/smart/icon/15470340230n9xlqqraae_0.png",
"id": "20858526807d3a76822f",
"dev_type": "climate",
"ha_type": "climate"
}
],
"scenes": []
},
"header": {
"code": "SUCCESS",
"payloadVersion": 1
}
}

But this is not correct,because i use a gateway, there have 5 air conditioning connect to it.
So the "https://px1.tuyaeu.com/homeassistant/skill" maybe just for climate,
Can't work for climate gateway correctly.
It's not "API" fault.

@stale
Copy link

stale bot commented Oct 8, 2019

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 8, 2019
@stale stale bot closed this as completed Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants