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

 找回密码
 立即注册
查看: 4134|回复: 0

[技术探讨] 彩云天气自动化更新求解

[复制链接]

6

主题

388

帖子

2043

积分

金牌会员

Rank: 6Rank: 6

积分
2043
金钱
1655
HASS币
0
发表于 2017-12-22 15:11:37 | 显示全部楼层 |阅读模式
L大的彩云天气,用起来很不错。有几个疑问想求解一下:
第一,自动化代码好像没法直接写在caiyunweatherse.yaml,会报错:
ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: required key not provided @ data['action']. Got None
required key not provided @ data['trigger']. Got None. (See ?, line ?).
提示key没给,但是写在最外面的automation.ymal里面没问题,不知道什么原因。
第二,ha启动之后,日志就报:
File "/home/homeassistant/.homeassistant/custom_components/sensor/CaiyunweatherSE.py", line 497, in __init__
    elatitude = self.tracker_state.attributes.get('latitude')
AttributeError: 'NoneType' object has no attribute 'attributes'
虽然不影响使用,但是想问下大概是什么问题。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-20 16:04 , Processed in 0.043461 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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