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

基于和风天气的lovelace天气卡片【丰富信息】【动态图标】

 火... [复制链接]

1

主题

92

回帖

434

积分

中级会员

积分
434
金钱
341
HASS币
0
发表于 2020-9-2 00:12:44 来自手机 | 显示全部楼层
看起来不错 学习一下
回复

使用道具 举报

0

主题

4

回帖

96

积分

注册会员

积分
96
金钱
92
HASS币
0
发表于 2020-9-3 01:25:19 | 显示全部楼层
感谢分享
回复

使用道具 举报

0

主题

5

回帖

66

积分

注册会员

积分
66
金钱
61
HASS币
0
发表于 2020-9-3 15:03:29 | 显示全部楼层
谢谢分享 试试看
回复

使用道具 举报

3

主题

52

回帖

845

积分

高级会员

积分
845
金钱
790
HASS币
0
发表于 2020-9-3 23:05:19 | 显示全部楼层
学习学习了
回复

使用道具 举报

3

主题

114

回帖

780

积分

高级会员

积分
780
金钱
663
HASS币
0
发表于 2020-9-12 10:08:25 | 显示全部楼层
谢谢!!!!!!
回复

使用道具 举报

1

主题

12

回帖

252

积分

中级会员

积分
252
金钱
239
HASS币
0
发表于 2020-9-14 14:49:30 | 显示全部楼层
WENGS 发表于 2020-7-20 18:31
打开/home/homeassistant/.homeassistant/custom_components/hf_weather/weather.py这个文件,然后在把40 ...

删掉这三行后任报错
2020-09-14 14:21:46 ERROR (MainThread) [homeassistant.components.weather] Error while setting up hf_weather platform for weather
Traceback (most recent call last):
  File "/home/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 186, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/home/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 292, in async_add_entities
    await asyncio.gather(*tasks)
  File "/home/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 451, in _async_add_entity
    entity.async_write_ha_state()
  File "/home/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 290, in async_write_ha_state
    self._async_write_ha_state()
  File "/home/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 314, in _async_write_ha_state
    sstate = self.state
  File "/home/homeassistant/lib/python3.7/site-packages/homeassistant/components/weather/__init__.py", line 188, in state
    return self.condition
  File "/home/homeassistant/.homeassistant/custom_components/hf_weather/weather.py", line 161, in condition
    return [k for k, v in CONDITION_CLASSES.items() if self._condition in v][0]
IndexError: list index out of range
回复

使用道具 举报

0

主题

26

回帖

1915

积分

金牌会员

积分
1915
金钱
1889
HASS币
0
发表于 2020-9-29 18:48:29 | 显示全部楼层
感谢!!!!!!!!!!!!!
回复

使用道具 举报

0

主题

1

回帖

14

积分

新手上路

积分
14
金钱
13
HASS币
0
发表于 2020-9-29 20:49:17 | 显示全部楼层
谢谢分享,学习下。
回复

使用道具 举报

0

主题

1

回帖

8

积分

新手上路

积分
8
金钱
7
HASS币
0
发表于 2020-9-29 20:54:59 | 显示全部楼层

好像比以前的更详细了 更新个
回复

使用道具 举报

0

主题

20

回帖

353

积分

中级会员

积分
353
金钱
333
HASS币
0
发表于 2020-10-3 14:28:00 | 显示全部楼层
我过来学学,之前按照别人教程,添加和风天气一直主页不显示,单元这次成功
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-5-9 10:11 , Processed in 0.266139 second(s), 27 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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