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

 找回密码
 立即注册
查看: 1609|回复: 2

[求助] 小米風扇自動化報錯

[复制链接]

68

主题

302

帖子

1964

积分

金牌会员

Rank: 6Rank: 6

积分
1964
金钱
1662
HASS币
0
发表于 2018-11-1 21:49:29 | 显示全部楼层 |阅读模式
小米風扇自動化報錯, 求師兄指教, thanks!!

- alias: fan level 1
  initial_state: true
  hide_entity: true
  trigger:
    - platform: state
      entity_id: input_boolean.fan_level_1
      to: 'on'
  action:
    - service: fan.set_speed
      data_template:
        entity_id: fan.dining_room_fan
        speed: Level1

- alias: fan level 2
  initial_state: true
  hide_entity: true
  trigger:
    - platform: state
      entity_id: input_boolean.fan_level_2
      to: 'on'
  action:
    - service: fan.set_speed
      data_template:
        entity_id: fan.dining_room_fan
        speed: Level2
               
- alias: fan level 3
  initial_state: true
  hide_entity: true
  trigger:
    - platform: state
      entity_id: input_boolean.fan_level_3
      to: 'on'
  action:
    - service: fan.set_speed
      data_template:
        entity_id: fan.dining_room_fan
        speed: Level3
               
- alias: fan level 4
  initial_state: true
  hide_entity: true
  trigger:
    - platform: state
      entity_id: input_boolean.fan_level_4
      to: 'on'
  action:
    - service: fan.set_speed
      data_template:
        entity_id: fan.dining_room_fan
        speed: Level4

2018-11-01 21:39:12 ERROR (SyncWorker_0) [homeassistant.util.yaml] while scanning for the next token
found character '\t' that cannot start any token
  in "/config/automations.yaml", line 1781, column 1
2018-11-01 21:39:12 ERROR (MainThread) [homeassistant.bootstrap] Error loading /config/configuration.yaml: while scanning for the next token
found character '\t' that cannot start any token
  in "/config/automations.yaml", line 1781, column 1
回复

使用道具 举报

123

主题

4629

帖子

1万

积分

管理员

囧死

Rank: 9Rank: 9Rank: 9

积分
16063
金钱
11349
HASS币
45
发表于 2018-11-2 11:49:15 | 显示全部楼层
把tab制表符换成空格。
回复

使用道具 举报

68

主题

302

帖子

1964

积分

金牌会员

Rank: 6Rank: 6

积分
1964
金钱
1662
HASS币
0
 楼主| 发表于 2018-11-2 13:56:34 | 显示全部楼层
Jones 发表于 2018-11-2 11:49
把tab制表符换成空格。

thanks Jones!!
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-10 20:54 , Processed in 0.089618 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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