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

[TuyaWebPlatform] getaddrinfo EAI_AGAIN px1.tuyaeu.com #69

Closed
auraaa96 opened this issue Aug 28, 2020 · 1 comment
Closed

[TuyaWebPlatform] getaddrinfo EAI_AGAIN px1.tuyaeu.com #69

auraaa96 opened this issue Aug 28, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@auraaa96
Copy link

I have my homebridge set up on a raspberry with a service auto start on boot.
While starting homebridge manually creates no issues with tuya web and initialise fine, in autostart after a fresh boot of the device it give me this: [TuyaWebPlatform] getaddrinfo EAI_AGAIN px1.tuyaeu.com

on the home application on the iphone the devices seem working fine and are rappresented like they are online, but trying to interract with them creates no result. (i flip the switch and the socket doesn't turn on, while on the app it's on)

full log:
[8/28/2020, 21:29:37] [TuyaWebPlatform] Initializing TuyaWebPlatform platform...
[8/28/2020, 21:29:37] [TuyaWebPlatform] Loading accessory from cache: Acqua calda
[8/28/2020, 21:29:37] [TuyaWebPlatform] Loading accessory from cache: Barca
[8/28/2020, 21:29:37] [TuyaWebPlatform] Loading accessory from cache: Scaldabagno PT
...
[8/28/2020, 21:29:37] [TuyaWebPlatform] getaddrinfo EAI_AGAIN px1.tuyaeu.com

config.json
`{
"bridge": {
"name": "HomeBridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "x"
},

"description": "",

"accessories": [],

"platforms": [
	{
	"platform": "TuyaWebPlatform",
	"name": "TuyaWebPlatform",
	"options":
	{
		"username": "[email protected]",
		"password": "x",
		"countryCode": "39",
		"platform": "smart_life"
		}
}]

}
`
after i manually stop and start again homebridge

[8/28/2020, 21:42:42] [TuyaWebPlatform] Initializing TuyaWebPlatform platform... [8/28/2020, 21:42:42] [TuyaWebPlatform] Loading accessory from cache: Acqua calda [8/28/2020, 21:42:42] [TuyaWebPlatform] Loading accessory from cache: Barca [8/28/2020, 21:42:42] [TuyaWebPlatform] Loading accessory from cache: Scaldabagno PT ... [8/28/2020, 21:42:43] [TuyaWebPlatform] Existing Accessory found [Name: Acqua calda] [Tuya ID: x] [HomeBridge ID: x-x-x-x-x] [8/28/2020, 21:42:43] [TuyaWebPlatform] [Acqua calda] Characteristic.On - Enabled [8/28/2020, 21:42:43] [TuyaWebPlatform] Existing Accessory found [Name: Barca ] [Tuya ID: x] [HomeBridge ID: x-x-x-x-x] [8/28/2020, 21:42:43] [TuyaWebPlatform] [Barca ] Characteristic.On - Enabled [8/28/2020, 21:42:43] [TuyaWebPlatform] Existing Accessory found [Name: Scaldabagno PT] [Tuya ID: x] [HomeBridge ID: x-x-x-x-x] [8/28/2020, 21:42:43] [TuyaWebPlatform] [Scaldabagno PT] Characteristic.On - Enabled
and then it just works

@auraaa96 auraaa96 added the bug Something isn't working label Aug 28, 2020
@milo526
Copy link
Owner

milo526 commented Aug 29, 2020

Hello,
EAI_AGAIN errors are related to DNS queries i.e. your computer doesn't know where it can find the computer belonging to px1.tuyaeu.com. This is a temporary problem as you already saw.
It is also a problem that this plugin can do nothing about sadly.

If this where to happen again just wait a few moments and try again; most of the time that should resolve it.

If this issue keeps persisting; please check the DNS settings of your raspberry pi, that is very much out of scope of this plugin.

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

2 participants