homebridge-tuya-outlet-eve
Homebridge plugin for IoT devices that use Tuya Smart's platform, allowing them to be exposed to Apple's HomeKit.
Supports Outlet
with Eve app energy consumption monitoring.
Installation
Install this plugin using npm i -g @petro-kushchak/homebridge-tuya-outlet-eve
.
Update the config.json
file of your Homebridge setup, by modifying the sample configuration below. Detailed steps for getting the id
and key
combinations of your devices can be found on the Setup Instructions page.
Configurations
{
...
"platforms": [
...
/* The block you need to enable this plugin */
{
"platform": "TuyaOutletEve",
"devices": [
/* The block you need for each device */
{
"name": "Main Switch",
"type": "Outlet",
"manufacturer": "Cotify",
"model": "Smart Wifi Switch E26",
"id": "011233455677899abbcd",
"key": "0123456789abcdef"
}
/* End of the device definition block */
]
}
/* End of the block needed to enable this plugin */
]
...
}
Parameters
-
name
(required) is anything you'd like to use to identify this device. You can always change the name from within the Home app. -
type
(required) is a case-insensitive identifier that lets the plugin know how to handle your device. Must beOutlet
-
manufacturer
andmodel
are anything you like; the purpose of them is to help you identify the device. -
id
(required) andkey
(required) are parameters for your device. If you don't have them, follow the steps found on the Setup Instructions page. -
ip
needs to be added only if you face discovery issues. See Common Problems for more details.
To find out which
id
belongs to which device, open the Tuya Smart app and check theDevice Information
by tapping the configuration icon of your devices; it is almost always a tiny icon on the top-right.
Credit
To create this plugin, I learnt a lot from Max Isom's work on his TuyAPI project to create my communication driver.