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

 找回密码
 立即注册
楼主: Golden_Soap

[插件集成] 和风天气插件组(天气预报+生活提示+小时预报+空气质量)

  [复制链接]

2

主题

89

帖子

293

积分

中级会员

Rank: 3Rank: 3

积分
293
金钱
204
HASS币
0
发表于 2018-8-17 15:11:36 | 显示全部楼层
是不是安装好插件后,每个文件中的APPKEY和CITY都要替换一下?装好没反映 啊。。。。
回复

使用道具 举报

2

主题

89

帖子

293

积分

中级会员

Rank: 3Rank: 3

积分
293
金钱
204
HASS币
0
发表于 2018-8-17 15:13:39 | 显示全部楼层
Invalid config for [sensor.heweather]: required key not provided @ data['d66aaf810a7519cbb8a74286a3625478']. Got None
required key not provided @ data['余姚']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/sensor.heweather/
Invalid config for [sensor.heweather_hourlyforecast]: required key not provided @ data['d66aaf810a7519cbb8a74286a3625478']. Got None
required key not provided @ data['余姚']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/compon ... her_hourlyforecast/
Invalid config for [sensor.lifesuggestion]: required key not provided @ data['d66aaf810a7519cbb8a74286a3625478']. Got None
required key not provided @ data['余姚']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/sensor.lifesuggestion/

修改后变这样了?到底 应该修改哪些?
回复

使用道具 举报

0

主题

257

帖子

915

积分

高级会员

Rank: 4

积分
915
金钱
658
HASS币
0
发表于 2018-8-28 16:21:44 | 显示全部楼层
来学习学习
回复

使用道具 举报

7

主题

291

帖子

1041

积分

金牌会员

Rank: 6Rank: 6

积分
1041
金钱
749
HASS币
0
发表于 2018-9-9 01:30:35 | 显示全部楼层
感谢大佬,已经拿走了。大佬可以做一下微信推送的,可以是锦上添花了。。。。哈哈
回复

使用道具 举报

7

主题

291

帖子

1041

积分

金牌会员

Rank: 6Rank: 6

积分
1041
金钱
749
HASS币
0
发表于 2018-9-9 01:35:51 | 显示全部楼层
我这边未来3小时的组不出来,配置是好的。。。求解大佬。。
回复

使用道具 举报

0

主题

57

帖子

835

积分

高级会员

Rank: 4

积分
835
金钱
778
HASS币
0
发表于 2018-9-26 14:30:38 | 显示全部楼层
感谢分享了!
回复

使用道具 举报

175

主题

2967

帖子

7608

积分

超级版主

我就是六神

Rank: 8Rank: 8

积分
7608
金钱
4616
HASS币
398

活跃会员教程狂人灌水之王

QQ
发表于 2018-10-9 00:34:23 | 显示全部楼层
2018-10-09 00:07:42 ERROR (MainThread) [custom_components.sensor.heweather_hourlyforecast] Error while accessing: [url]https://way.jd.com/he/freeweather[/url]
2018-10-09 00:07:42 ERROR (MainThread) [homeassistant.components.sensor] heweather_hourlyforecast: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 251, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 350, in async_device_update
    yield from self.async_update()
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 212, in coro
    res = func(*args, **kw)
  File "/config/custom_components/sensor/heweather_hourlyforecast.py", line 198, in async_update
    if self._data.hour_3[1] in j:
TypeError: 'NoneType' object is not subscriptable
2018-10-09 00:07:42 ERROR (MainThread) [homeassistant.components.sensor] heweather_hourlyforecast: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 251, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 350, in async_device_update
    yield from self.async_update()
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 212, in coro
    res = func(*args, **kw)
  File "/config/custom_components/sensor/heweather_hourlyforecast.py", line 141, in async_update
    self._state = self._data.hour_3[0]+' '+self._data.hour_3[1]+' '+self._data.hour_3[2]+'℃'
TypeError: 'NoneType' object is not subscriptable
2018-10-09 00:07:43 ERROR (MainThread) [homeassistant.components.sensor] heweather_hourlyforecast: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 251, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 350, in async_device_update
    yield from self.async_update()
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 212, in coro
    res = func(*args, **kw)
  File "/config/custom_components/sensor/heweather_hourlyforecast.py", line 148, in async_update
    self._state = self._data.hour_6[0]+' '+self._data.hour_6[1]+' '+self._data.hour_6[2]+'℃'
TypeError: 'NoneType' object is not subscriptable
2018-10-09 00:07:43 ERROR (MainThread) [homeassistant.components.sensor] heweather_hourlyforecast: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 251, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 350, in async_device_update
    yield from self.async_update()
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 212, in coro
    res = func(*args, **kw)
  File "/config/custom_components/sensor/heweather_hourlyforecast.py", line 155, in async_update
    self._state = self._data.hour_9[0]+' '+self._data.hour_9[1]+' '+self._data.hour_9[2]+'℃'
TypeError: 'NoneType' object is not subscriptable
2018-10-09 00:07:43 ERROR (MainThread) [custom_components.sensor.heweather] Error while accessing: [url]https://way.jd.com/he/freeweather[/url]
回复

使用道具 举报

0

主题

9

帖子

74

积分

注册会员

Rank: 2

积分
74
金钱
65
HASS币
0
发表于 2018-10-16 09:33:17 | 显示全部楼层
撸主您好,我使用了您的packages,但只出来一个本地质量,自己在configuration里面复制粘贴你的配置,只出现本地质量和天气预报,生活建议和小时天气预报不出现,怎么回事
回复

使用道具 举报

0

主题

9

帖子

74

积分

注册会员

Rank: 2

积分
74
金钱
65
HASS币
0
发表于 2018-10-22 21:17:14 | 显示全部楼层
用了你的文件,然后在configuration里面添加homeassistant:
  packages: !include_dir_named packages然后我的sun:就不显示了,请求帮助,谢谢
回复

使用道具 举报

1

主题

77

帖子

260

积分

中级会员

Rank: 3Rank: 3

积分
260
金钱
183
HASS币
0
发表于 2018-10-29 21:09:37 | 显示全部楼层
本帖最后由 Lucky 于 2018-10-29 21:10 编辑
allanlee00 发表于 2018-10-22 21:17
用了你的文件,然后在configuration里面添加homeassistant:
  packages: !include_dir_named packages然后 ...

你不会是又加了个homeassistant:域吧......configuration.yaml自带有,直接加一行即可。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-28 17:32 , Processed in 0.526774 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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