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

Connecting to device through Gateway not working #152

Open
jormajo opened this issue Aug 5, 2024 · 0 comments
Open

Connecting to device through Gateway not working #152

jormajo opened this issue Aug 5, 2024 · 0 comments

Comments

@jormajo
Copy link

jormajo commented Aug 5, 2024

In the following configuration:

image

The connection to the gateway can be established with no problem, but the connection to the switch cannot.
The switch is properly configured in iot.tuya.com.
The Device Key is the same for both devices ( __e__ ).
The Device Virtual ID is the Device ID shown in iot.tuya.com and also by tuya-cli wizard. Obviously, it is different for each device ( __d__ & __n__ )
Also, Interval for find operation incase of error is set to 30,000 milliseconds. Quite a generous value.

The output of tuya-cli is as follows:

root@ihost:/var/lib $ tuya-cli wizard
? Do you want to use these saved API credentials? __a__ __b__ eu Yes
? Provide a 'virtual ID' of a device currently registered in the app: __c__
[
  {
    name: 'Mini Multi-Mode Gateway',
    id: '__d__',
    key: '__e__',
    subDevices: [
      {
        name: 'Tank A Level',
        id: '__f__',
        cid: '__g__'
      },
      {
        name: '智能水阀 3',
        id: '__h__',
        cid: '__i__'
      },
      {
        name: 'Soil sensor',
        id: '__j__',
        cid: '__k__'
      },
      {
        name: 'SY2-ZigBee metering switch 3',
        id: '__l__',
        cid: '__m__'
      },
      {
        name: 'SY2-ZigBee metering switch 2',
        id: '__n__',
        cid: '__o__'
      }
    ]
  }
]

The "Switch" is mapped to SY2-ZigBee metering switch 2

If anyone can provide any ideas on how to resolve the situation, it would be greatly appreciated.

Thanks,

Jordi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant