『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 520|回复: 3

[已解决] esphome灯带RGB单独灯珠发光发生错误

[复制链接]

2

主题

6

帖子

72

积分

注册会员

Rank: 2

积分
72
金钱
66
HASS币
0
发表于 2022-11-10 19:13:42 | 显示全部楼层 |阅读模式
本帖最后由 zy302688381 于 2022-11-11 14:23 编辑

求助各位大神esphome灯带RGB单独灯珠发光发生错误
官方代码地址信息条纹 — ESPHome
uTools_1668078654887.png

我的代码如下:
esphome:
  name: jc-shui-wei-baojing

esp8266:
  board: esp01_1m

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: "1"
ota:
  password: "1"

wifi:
  ssid: "99123"     ## wifi账号;
  password: ""  ## wifi密码;
  manual_ip:                              #需要对nodemcu设定固定的ip地址
    static_ip: 172.16.2.84              #ip地址   
    gateway: 172.16.0.1                  #网关
    subnet: 255.255.0.0
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Jc-Shui-Wei-Baojing"
    password: "12345678"
web_server:  ## web控制,添加了这2行,就可以在网页端打开设备ip;
  port: 80
  auth:
    username: "admin"
    password: "12345678"

captive_portal:


light:
  - platform: fastled_clockless
    chipset: WS2811
    pin: GPIO2
    id: light_fastled
    num_leds: 9
    rgb_order: GRB
    name: "Infostrip"
    effects:
      - strobe:
      - random:
  - platform: partition
    name: "PL0"
    segments:
      - id: light_fastled
          from: 0
          to: 0
    effects:
      - strobe:

  - platform: partition
    name: "PL1"
    segments:
      - id: light_fastled
          from: 1
          to: 1
    effects:
      - strobe:

  - platform: partition
    name: "PL2"
    segments:
      - id: light_fastled
          from: 2
          to: 2
    effects:
      - strobe:

  - platform: partition
    name: "PL3"
    segments:
      - id: light_fastled
          from: 3
          to: 3
    effects:
      - strobe:

  - platform: partition
    name: "PL4"
    segments:
      - id: light_fastled
          from: 4
          to: 4
    effects:
      - strobe:

  - platform: partition
    name: "PL5"
    segments:
      - id: light_fastled
          from: 5
          to: 5
    effects:
      - strobe:

  - platform: partition
    name: "PL6"
    segments:
      - id: light_fastled
          from: 6
          to: 6
    effects:
      - strobe:

  - platform: partition
    name: "PL7"
    segments:
      - id: light_fastled
          from: 7
          to: 7
    effects:
      - strobe:

  - platform: partition
    name: "PL8"
    segments:
      - id: light_fastled
          from: 8
          to: 8
    effects:
      - strobe:

  - platform: partition
    name: "PL8"
    segments:
      - id: light_fastled
          from: 8
          to: 8
    effects:
      - strobe:

回复

使用道具 举报

0

主题

23

帖子

248

积分

中级会员

Rank: 3Rank: 3

积分
248
金钱
225
HASS币
0
发表于 2022-11-10 20:38:48 | 显示全部楼层
是不是格式错误了?是不是from前面去掉两个空格
回复

使用道具 举报

29

主题

922

帖子

4166

积分

论坛元老

Rank: 8Rank: 8

积分
4166
金钱
3234
HASS币
70
发表于 2022-11-11 03:14:08 | 显示全部楼层
楼上正解,from,id,to空格要对齐
我家全屋智能的HA设置 https://github.com/relliky/Tais_Home_Assistant_Config
回复

使用道具 举报

2

主题

6

帖子

72

积分

注册会员

Rank: 2

积分
72
金钱
66
HASS币
0
 楼主| 发表于 2022-11-11 14:18:27 | 显示全部楼层
biox998 发表于 2022-11-10 20:38
是不是格式错误了?是不是from前面去掉两个空格

谢谢哥!帮大忙了,我还以为不同行的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-29 06:38 , Processed in 0.113739 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表