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

a node-red module for managing tuya smart devices
https://flows.nodered.org/node/node-red-contrib-tuya-smart-device
MIT License
47 stars 15 forks source link

How to get bluetooth device through Gateway #120

Closed nospam2k closed 1 year ago

nospam2k commented 1 year ago

When I get back the ids, I get

{
  name: 'Gateway',
  id: GWxxxxxxxxx,
  key: 'GWxxxx',
  subDevices: [
  {
    name: 'BT Light',
    id: 'SDxxxxxxx',
    cid: 'xxxx'
  }
}

(ID's and keys masked. Ignore actual values)

How do I set up the node?

msillano commented 1 year ago

Node: only one for the gateway. NOT for subdevices. id: GWxxxxxxxxx, key: 'GWxxxx',

SET subdevice ( to gateway node): "payload": { "devId": 'xxxx', // cid, only for subdevices (string)
"dps":"103", // DP (string) "set":220 // BOOLEAN, INT/ENUM, STRING
} }

GET subdevice ( to gateway node): "payload": { "devId": 'xxxx', // cid, only for subdevices (string)
"operation":"GET", "dps":"103" } }

best regards

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

Auto closing the issue