ozturkalperen / homebridge-tuya-switch Goto Github PK
View Code? Open in Web Editor NEWhomebridge-tuya-switch is a homebridge plugin that lets you control your Tuya based switch devices with HomeKit.
License: MIT License
homebridge-tuya-switch is a homebridge plugin that lets you control your Tuya based switch devices with HomeKit.
License: MIT License
I'd love to see maybe a parameter to change how the Switch is exposed to HomeKit (i.e.: expose a 3-way switch as 3 individual lightbulbs).
Were can I find the ID and Key for my switches?
To get ID and Key Watch this video.
This URL redirects to a private video. Is there an up to date version?
Hi,
First off, thanks for this plugin, it's the first lan based Tuya plugin I could actually get to work. I have managed to successfully add my devices and I can control them, but there appear to errors getting the initial state of the devices
I enabled debugging in homebridge and generated the log below.
As I said, I am able to control the devices, but getting the initial state or subsequent state of the switch doesn't seem to work.
[3/4/2021, 10:07:04 AM] [TuyaLan] Connected to Matt Office
[TuyaAccessory] Sending first query to Matt Office (3.3)
[TuyaAccessory] Matt Office (3.3) didn't respond with its current state.
[3/4/2021, 10:07:04 AM] [TuyaLan] Ready to handle Matt Office (Switch:3.3) with signature {}
[3/4/2021, 10:07:04 AM] [homebridge-tuya-switch] This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info.
[3/4/2021, 10:07:04 AM] [homebridge-tuya-switch] Error:
at On.Characteristic.characteristicWarning (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2164:105)
at On.Characteristic.validateUserInput (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1931:16)
at On.Characteristic.updateValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1365:20)
at /usr/local/lib/node_modules/homebridge-tuya-switch/lib/SwitchAccessory.js:56:18
at Array.forEach (<anonymous>)
at SwitchAccessory._registerCharacteristics (/usr/local/lib/node_modules/homebridge-tuya-switch/lib/SwitchAccessory.js:49:33)
at TuyaAccessory.<anonymous> (/usr/local/lib/node_modules/homebridge-tuya-switch/lib/BaseAccessory.js:22:18)
at Object.onceWrapper (events.js:313:26)
at TuyaAccessory.emit (events.js:223:5)
at TuyaAccessory._msgHandler_3_3 (/usr/local/lib/node_modules/homebridge-tuya-switch/lib/TuyaAccessory.js:299:18)
and a snippet from the config.json
{
"platform": "TuyaLan",
"name": "TuyaLan",
"devices": [
{
"name": "Matt Office",
"type": "Switch",
"manufacturer": "EZH",
"model": "Wifi Mini Smart Life Outlet",
"id": "bfeb84623f663d146316cd",
"key": "redacted_but_correct"
}
]
}
...
I have several smart plugs and smart swiches and try to install homebridge-tuya-switch together with homebridge-tuya, to get wortking all, but is not possible, I get this error in homebridge log:
[4/17/2021, 8:00:28 PM] The requested platform 'TuyaLan' has been registered multiple times. Please be more specific by writing one of: homebridge-tuya.TuyaLan, homebridge-tuya-switch.TuyaLan
Any solution,
Regards,
Hello,
First of all congrats on the plugin.
I would like to use both, your tuya-switch, and the regular tuya-lan together, since I have multiple Tuya devices.
But happens that when I install and setup both, this error appears on Homebridge startup:
The requested platform 'TuyaLan' has been registered multiple times. Please be more specific by writing one of: homebridge-tuya.TuyaLan, homebridge-tuya-switch.TuyaLan
Any idea about how to solve it?
Hello, thank you very much for your contribution,
I have a 4 channel switch, is it possible to rename each channel individually?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.