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

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

[求助] 刚开始学加入Automation,打开HA,显示Invalid Config

[复制链接]

1

主题

7

帖子

35

积分

新手上路

Rank: 1

积分
35
金钱
28
HASS币
0
发表于 2017-11-29 15:04:46 | 显示全部楼层 |阅读模式
不知道是Automation写得有问题还是有什么别的步骤没做导致的,改了挺多遍也没改变,图和代码如下,求帮助~~~~

file:///F:/%E6%A0%91%E8%8E%93%E6%B4%BE/%E8%AE%BA%E5%9D%9Bwent/1511938602(1).jpg

automation:

  - alias: 'Turn on the Light when the Swich Close'
    hide_entity: True
    initial_state: 'off'
    trigger:
      - platform: state
        entity_id: binary_sensor.door_window_sensor_158d0001dac8e4 
        from: 'on'
        to: 'off'
    condition:
      - condition: time
        after: '14:00:00'
        before: '23:00:00'
    action:
      - service: light.turn_on
        entity_id: light.desk_light
回复

使用道具 举报

1

主题

7

帖子

35

积分

新手上路

Rank: 1

积分
35
金钱
28
HASS币
0
 楼主| 发表于 2017-11-29 15:06:04 | 显示全部楼层
刚刚图片没上传成功~
1511938602(1).jpg
回复

使用道具 举报

2

主题

237

帖子

1724

积分

金牌会员

Rank: 6Rank: 6

积分
1724
金钱
1487
HASS币
0
发表于 2017-11-29 17:55:38 | 显示全部楼层
查看LOG文件   应该是编的自动化里有格式错误
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-29 10:55 , Processed in 0.071422 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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