2
6
58
论坛技术达人
使用道具 举报
8
284
2005
金牌会员
4
145
1658
fan.lampsmart_pro_light: [source /config/esphome/XXX.yaml:246] Platform not found: 'fan.lampsmart_pro_light'. platform: lampsmart_pro_light name: Kitchen Fan duration: 1000 group: 0 default_transition_length: 0s
yybl 发表于 2024-7-23 20:32 风扇编译错误哦
cowboy 发表于 2024-7-23 22:00 抱歉 我没有合并到主分支,现在可以了
src/esphome/components/lampsmart_pro_light/lampsmart_pro_fan.cpp:9:10: fatal error: wifi.h: No such file or directory ************************************************************** * Looking for wifi.h dependency? Check our library registry! * * CLI > platformio lib search "header:wifi.h" * Web > https://registry.platformio.org/search?q=header:wifi.h * ************************************************************** #include <wifi.h> ^~~~~~~~ compilation terminated. *** [.pioenvs/mq5-sht20/src/esphome/components/lampsmart_pro_light/lampsmart_pro_fan.o] Error 1 src/esphome/components/lampsmart_pro_light/lampsmart_pro_light.cpp:9:10: fatal error: wifi.h: No such file or directory ************************************************************** * Looking for wifi.h dependency? Check our library registry! * * CLI > platformio lib search "header:wifi.h" * Web > https://registry.platformio.org/search?q=header:wifi.h * ************************************************************** #include <wifi.h> ^~~~~~~~ compilation terminated. *** [.pioenvs/mq5-sht20/src/esphome/components/lampsmart_pro_light/lampsmart_pro_light.o] Error 1 ========================= [FAILED] Took 386.28 seconds =========================
1
203
1369
yybl 发表于 2024-7-24 10:57 还缺文件?还是我下载不下来?
cowboy 发表于 2024-7-24 14:35 看起来你的设备没有wifi模块,我改了下代码,你看看能不能编译?
zhanfu86 发表于 2024-7-24 11:53 风扇灯怎么接esp32模块呢,看不懂。天猫的不是有自己的芯片吗
yybl 发表于 2024-7-24 15:38 我的理解是利用ESP32的蓝牙去控制 蓝牙灯、风扇。。不知道对不对
esphome: name: lampsmart friendly_name: lampsmart platformio_options: board_build.flash_mode: dio esp32: board: esp32-c3-devkitm-1 variant: ESP32C3 framework: type: arduino # Enable logging logger: level: INFO # esp32_ble_tracker: # Enable Home Assistant API api: encryption: key: "8XVJLGJpTerA9fIE+S66wWpu8z4GhZKrFZG6+uFc7ww=" ota: - platform: esphome password: "a79804b3eb23eb2d79d19a720c3008b5" wifi: ssid: !secret wifi_ssid password: !secret wifi_password # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Lampsmart Fallback Hotspot" password: "xLqOxtoZMjwF" captive_portal: external_components: # shorthand source: github://zt8989/esphome-lampsmart-pro light: - platform: lampsmart_pro_light name: Bed Room Light group: 1 default_transition_length: 0s duration: 500 fan: - platform: lampsmart_pro_light group: 1 name: Bed Room Fan duration: 500
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2025-3-11 00:29 , Processed in 0.167997 second(s), 31 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.