mileperhour / localtuya-homeassistant

local handling for Tuya devices
GNU General Public License v3.0
147 stars 667 forks source link

invalid config for switch #15

Open quangvinh9x opened 3 years ago

quangvinh9x commented 3 years ago

First, thanks for this custom component. I got it working (HA 0.115.6 running on a RPi 3B+). I have a two-gangs switch, i'm newbie. I did: 1) Copy switch.py and the other 2 integration/platform files, and pytuya handler folder, to /custom_components/localtuya/ folder, inside /config folder (via Samba for HASSIO).

2) Identify on your Home-Assistant logs (putting your logging into debug mode), the different attributes you want to handle by HA. HA said: "2020-10-02 22:44:37 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for localtuya which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant."

3) i edited configuration.yaml file with my local_key and device_id. But when i checked configuration, HA said "Invalid config for [switch]: required key not provided @ data['platform']. Got None. (See /config/configuration.yaml, line 10). " Can you help me fix this problem? Many thanks Screenshot 2020-10-02 233346

rospogrigio commented 3 years ago

This repo looks discontinued. You may have a look at mine: https://github.com/rospogrigio/localtuya-homeassistant , bye!

quangvinh9x commented 3 years ago

Many thanks Rospogrigio