Homebridge TuyAPI Extended
Homebridge TuyaAPI Extended is a library for communicating with devices that use the Tuya cloud network. These devices are branded under many different names, but if port 6668 is open on your device chances are this library will work with it. Currently only supports smart plugs, but it should be fairly trivial to add other types of devices.
npm install homebridge-tuyapi-extended
const TuyaExtendedDevice = ;let tuya =id: 'xxxxxxxxxxxxxxxxxxxx'key: 'xxxxxxxxxxxxxxxx';tuya;
This should report the current status, set the device to the opposite of what it currently is, then report the changed status.
See the setup instructions for how to find the needed parameters.
See the docs.
IMPORTANT: Only one TCP connection can be in use with a device at once. If testing this, do not have the app on your phone open.
- Add automated tests
- Document details of protocol