vinodsr/node-red-contrib-tuya-smart-device

Connecting to device through Gateway not working

Opened this issue · 0 comments

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