I cannot connect to the gateway either through the configuration.yaml, config_flow or DP dump
Environment
Localtuya version: 3.2.1
Home Assistant Core version: 2021.1.5
[x] Are you using the Home Assistant Tuya Cloud component ?
[x] Are you using the Tuya App in parallel ?
Configuration
config_flow
Device Discovery found my device: bfc...hen (192.168..)
I put a name for the device and local_key, left the rest unchanged
an error occurred: Failed to authenticate with device. Verify that device id and local key are correct.
INFO:localtuya:localtuya version 1.0.0
INFO:localtuya:Python 3.7.3 (default, Dec 20 2019, 18:57:59)
[GCC 8.3.0] on linux
INFO:localtuya:Using pytuya version '8.1.0'
INFO:localtuya:Detecting list of available DPS of device bfc...hen [192.168.*.*], protocol 3.3.
DEBUG:localtuya.pytuya:Sending command status (device type: type_0a)
DEBUG:localtuya.pytuya:paylod=b'{"gwId":"bfc...hen","devId":"bfc...hen"}'
DEBUG:localtuya.pytuya:DATA RECEIVED!
DEBUG:localtuya.pytuya:decode payload=b'V\xad\x80ap\x9c\xc6\x1a\x95CJSll~\x10'
DEBUG:localtuya.pytuya:decrypted result='devid not found'
DEBUG:localtuya.pytuya:Failed to connect to 192.168.*.*. Raising Exception.
WARNING:localtuya.pytuya:Failed to get status: Expecting value: line 1 column 1 (char 0)
INFO:localtuya:TIMEOUT: No response from device bfc...hen [192.168.*.*] after 2 attempts.
Provide Home Assistant taceback/logs
[bfc...hen] Connect to 192.168.*.* failed
Traceback (most recent call last):
File "/config/custom_components/localtuya/common.py", line 149, in _make_connection
status = await self._interface.status()
File "/config/custom_components/localtuya/pytuya/__init__.py", line 472, in status
status = await self.exchange(STATUS)
File "/config/custom_components/localtuya/pytuya/__init__.py", line 457, in exchange
payload = self._decode_payload(msg.payload)
File "/config/custom_components/localtuya/pytuya/__init__.py", line 559, in _decode_payload
return json.loads(payload)
File "/usr/local/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Additional information
I have one more device that I couldn't add via config_flow, but it was detected by DP Dump and works fine when added to configuration.yaml
The problem
I cannot connect to the gateway either through the
configuration.yaml
,config_flow
or DP dumpEnvironment
Configuration
config_flow
Device Discovery found my device: bfc...hen (192.168..) I put a name for the device and local_key, left the rest unchanged an error occurred:
Failed to authenticate with device. Verify that device id and local key are correct.
configuration.yaml
DP dump
Provide Home Assistant taceback/logs
Additional information
I have one more device that I couldn't add via
config_flow
, but it was detected by DP Dump and works fine when added toconfiguration.yaml