localtuya-homeassistant icon indicating copy to clipboard operation
localtuya-homeassistant copied to clipboard

invalid config for switch

Open quangvinh9x opened this issue 4 years ago • 2 comments

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

quangvinh9x avatar Oct 02 '20 16:10 quangvinh9x

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

rospogrigio avatar Oct 02 '20 21:10 rospogrigio

Many thanks Rospogrigio

quangvinh9x avatar Oct 05 '20 10:10 quangvinh9x