iRayanKhan / homebridge-tuya

A Homebridge plugin to control Tuya devices locally.
MIT License
392 stars 164 forks source link

Switch 2 gang Zemismart #319

Open nikogeek opened 3 years ago

nikogeek commented 3 years ago

Hi, I'm new to this but have searched the web extensively and can't get a 2-gang wall switch to work on your-homebridge. Any way or help?

albilia commented 2 years ago

@nikogeek This is an example of a plugin that works on a 2 Gang smart lighting switch. Make sure you enter the id and key you extracted from your Dev account on Toya's website. link: https://bit.ly/3CyIDwL In order to check the integrity of the Json you can go to the following website, paste the string there and select Validate Json:https://jsonlint.com For the purpose of testing the switch in question specifically, I recommend backing up the plug you have today, removing it and sticking the string I attached instead. The only steps you will need to do are: A. Enter the id B. Enter the Key third. Restart Homebridge.

{ "name": "Shower + Service", "type": "CustomMultiOutlet", "manufacturer": "GeekBee", "model": "Tuch Switch", "id": "xxxxxxxxxxxxxxx", "key": "xxxxxxxxxxxxxx", "outlets": [ { "name": "outlet 1", "dp": 1 }, { "name": "outlet 2", "dp": 2 } ] }