# esp8266_led **Repository Path**: yaohx/esp8266_led ## Basic Information - **Project Name**: esp8266_led - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-02-22 - **Last Updated**: 2022-01-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # esp8266_led #### 介绍 ESP8266-01 + WS8212 + mqtt 实现远程控制LED灯,可控制开关、颜色。 #### 软件架构 采用Arduino IDE编写 mqtt客户端使用PubSubClient库 LED驱动使用FastLED库 #### 安装教程 1. 安装Arduino IDE 2. 安装ESP8266开发板支持 3. 安装需要的库PubSubClient、FastLED 4. 编译下载到esp8266上 #### 功能说明 1. 支持home assisent自动发现,hass集成mqtt后可以自动发现,自动集成到hass,使用hass控制 2. 向mqtt服务器light/switch/{macAddressStr}主题发送 ON,开灯({macAddressStr} 为esp8266的mac地址去掉所有冒号,以下相同)。 3. 向mqtt服务器light/switch/{macAddressStr}主题发送 OFF,关灯。 4. 向mqtt服务器light/rgb/{macAddressStr}主题发送 255,0,0,设置LED灯颜色(三个数字为grb的颜色数值)。 5. 支持smartConfig智能配网