Giter Site home page Giter Site logo

homebridge-tuya-switch's People

Contributors

nbe-odoo avatar ozturkalperen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

homebridge-tuya-switch's Issues

Video Link is Broken

To get ID and Key Watch this video.
This URL redirects to a private video. Is there an up to date version?

This plugin generated a warning from characteristic 'on'

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"
                }
             ]
         }
        ... 

homebridge-tuya-switch and homebridge-tuya

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,

TuyaLan registered multiple times

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.