当前位置: 首页 > wzjs >正文

天长做网站的百度关键词查询排名

天长做网站的,百度关键词查询排名,湖北住房和城乡建设委员会网站,中国关于影院建设的网站文章目录 一、安装ESPHome二、配置ESP32-C3控制灯1.主配置文件esp32c3-luat.yaml2.基础通用配置base.yaml3.密码文件secret.yaml4.围栏灯four_light.yaml5.彩灯rgb_light.yaml6.左右柱灯left_right_light.yaml 三、安装固件四、HomeAssistant配置ESPHome1.直接访问2.配置ESPHom…

文章目录

  • 一、安装ESPHome
  • 二、配置ESP32-C3控制灯
    • 1.主配置文件esp32c3-luat.yaml
    • 2.基础通用配置base.yaml
    • 3.密码文件secret.yaml
    • 4.围栏灯four_light.yaml
    • 5.彩灯rgb_light.yaml
    • 6.左右柱灯left_right_light.yaml
  • 三、安装固件
  • 四、HomeAssistant配置ESPHome
    • 1.直接访问
    • 2.配置ESPHome地址
    • 3.接入成功

一、安装ESPHome

uv init
uv add esphome
uv run esphome dashboard ./esphome

二、配置ESP32-C3控制灯

注意事项
1. id和name要用英文,不要用中文
2. wifi连接要用2.4GHz,不要用5GHz
3. i2c要注意frequency的设置

文件目录如下
在这里插入图片描述
ESP32-C3开发板
在这里插入图片描述

1.主配置文件esp32c3-luat.yaml

# https://wiki.luatos.com/chips/esp32c3/board.html
esphome:name: esp32c3-luatfriendly_name: esp32c3-luat
#  name_add_mac_suffix: trueplatformio_options:board_build.flash_mode: dioboard_build.mcu: esp32c3esp32:# HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flashboard: esp32-c3-devkitm-1variant: esp32c3framework:type: esp-idf# Enable logging
logger:hardware_uart: USB_SERIAL_JTAGpackages:# MAC: 60:55:f9:73:59:68base: !include common/base.yaml
#  luat_light: !include common/light/luat_light.yaml
#  luat_switch: !include common/switch/luat_switch.yamlfour_light: !include common/light/four_light.yamlrgb_light: !include common/light/rgb_light.yamlleft_right_light: !include common/light/left_right_light.yaml
captive_portal:
#<<: !include common/mechanical/matrix_keypad.yaml#WARNING GPIO2 is a strapping PIN and should only be used for I/O with care.
#WARNING GPIO8 is a strapping PIN and should only be used for I/O with care.
#WARNING GPIO9 is a strapping PIN and should only be used for I/O with care.
#Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
#See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
#12 13 This pin cannot be used on ESP32-C3s and is already used by the SPI/PSRAM interface (function: SPIHD).

2.基础通用配置base.yaml

# https://esphome.io/components/wifi
wifi:ssid: !secret wifi_ssidpassword: !secret wifi_passwordfast_connect: true# https://esphome.io/components/ota
ota:platform: esphomepassword: !secret ota_password# https://esphome.io/components/api
api:encryption:key: !secret api_encryption_key# 没有连接HA,默认15min会重启一次,设置为0s,将不再重启reboot_timeout: 0s# https://esphome.io/components/web_server
web_server:port: 80# https://esphome.io/components/mdns
mdns:disabled: falsetext_sensor:# https://esphome.io/components/text_sensor/version- platform: versionname: "Version"# https://esphome.io/components/text_sensor/wifi_info- platform: wifi_infomac_address:name: "Mac"ip_address:name: "IP"update_interval: 1mindns_address:name: "DNS"update_interval: 1minssid:name: "SSID"update_interval: 1minbssid:name: "BSSID"update_interval: 1min

3.密码文件secret.yaml

上面base.yaml中!secret wifi_ssid就是引用secret.yaml里面的wifi_ssid的值

# Your Wi-Fi SSID and password
wifi_ssid: "xxx"
wifi_password: "xxx"api_encryption_key: "xxx"
ota_password: "xxx"
ap_password: "xxx"

4.围栏灯four_light.yaml

# https://esphome.io/components/light/binary
light:- platform: binaryname: four_lightoutput: four_light_outputoutput:- id: four_light_outputplatform: gpiopin: 0

5.彩灯rgb_light.yaml

# https://esphome.io/components/light/rgb
light:- platform: rgbid: colorful_lightname: colorful_lightred: output_component_redgreen: output_component_greenblue: output_component_blue
# https://esphome.io/components/light/#pulse-effect
#    effects:
#        - pulse:
#        - pulse:
#            name: "Fast Pulse"
#            transition_length: 0.5s
#            update_interval: 0.5s
#            min_brightness: 0%
#            max_brightness: 100%
#        - pulse:
#            name: "Slow Pulse"
#            # transition_length: 1s      # defaults to 1s
#            update_interval: 2s
#        - pulse:
#            name: "Asymmetrical Pulse"
#            transition_length:
#              on_length: 1s
#              off_length: 500ms
#            update_interval: 1.5s
output:# https://esphome.io/components/output/ledc
#  - platform: ledc
#    id: output_component_red
#    pin:
#      number: 4
#      inverted: true
#  - platform: ledc
#    id: output_component_blue
#    pin:
#      number: 3
#      inverted: true
#  - platform: ledc
#    id: output_component_green
#    pin:
#      number: 2
#      inverted: true- platform: ledcid: output_component_redpin:number: 1inverted: true- platform: ledcid: output_component_bluepin:number: 18inverted: true- platform: ledcid: output_component_greenpin:number: 19inverted: true#output:
#  - platform: esp8266_pwm
#    id: output_component_red
#    pin: D1
#  - platform: esp8266_pwm
#    id: output_component_green
#    pin: D2
#  - platform: esp8266_pwm
#    id: output_component_blue
#    pin: D3

6.左右柱灯left_right_light.yaml

# https://esphome.io/components/light/binary
light:- platform: binaryname: left_lightoutput: left_light_output- platform: binaryname: right_lightoutput: right_light_output
output:- id: left_light_outputplatform: gpiopin: 6- id: right_light_outputplatform: gpiopin: 7

三、安装固件

在这里插入图片描述

四、HomeAssistant配置ESPHome

1.直接访问

在这里插入图片描述

2.配置ESPHome地址

如果配置了api_encryption_key,需要填写密钥
在这里插入图片描述

3.接入成功

在这里插入图片描述

http://www.dtcms.com/wzjs/137379.html

相关文章:

  • 做网站用jquery杭州网络推广外包
  • 专业的外贸网站建设公司排名网站排名推广
  • 外包公司做网站的流程如何分步骤开展seo工作
  • 厦门做网站培训交换神器
  • app网站维护手机cpu性能增强软件
  • 网站建设推广技术网站超级外链
  • 怎么做一元购网站种子搜索引擎
  • 做美剧盗版网站游戏推广代理app
  • 河北建设厅安监站官方网站网络营销与直播电商
  • 想开一家相亲网站 怎么做百度知道官网首页登录入口
  • java 做视频网站实例自媒体营销方式有哪些
  • 北京红酒网站建设免费刷seo
  • 济宁市兖州区城市建设局网站青岛网络优化厂家
  • 工程管理毕业设计代做网站如何做平台推广赚钱
  • 给企业做网站 工作免费建站免费推广的网站
  • 建筑工程施工合同范本seo引擎优化是做什么的
  • 电商网站建设行情全国培训机构排名前十
  • 武汉今日头条最新消息杭州seo网站排名
  • 大型电子商务网站建设方案seo站长工具下载
  • 网站建站哪个好网站推广开户
  • 网站设计制造seo包括什么
  • 飞机代理ip免费链接网站关键词优化报价
  • 毕节建设公司网站广告网站留电话
  • 做静态网站怎样让图片自己切换啥都能看的浏览器
  • 哪个网站可以做免费商业推广搜索图片
  • 怎样做网站建设的程序宁波优化系统
  • 国内最大的开源网站企业营销推广方案
  • 网站建设哪些网站可以网站的排名优化怎么做
  • 17网站一起做网店 新塘网站建设的一般步骤
  • b2c网站代表产品推广文案100字