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

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

[插件集成] HomeAssistant插件【和风天气v7】【202312 上架HACS】

  [复制链接]

0

主题

4

帖子

40

积分

新手上路

Rank: 1

积分
40
金钱
36
HASS币
0
发表于 2022-12-6 11:09:44 | 显示全部楼层
oap大佬的插件,但该插件很久没有更新过配置,导致我
回复

使用道具 举报

1

主题

67

帖子

557

积分

高级会员

Rank: 4

积分
557
金钱
490
HASS币
0
发表于 2022-12-7 09:37:25 | 显示全部楼层
有更新过配
回复

使用道具 举报

0

主题

18

帖子

102

积分

注册会员

Rank: 2

积分
102
金钱
84
HASS币
0
发表于 2022-12-7 23:31:55 | 显示全部楼层
Logger: homeassistant.components.weather
Source: custom_components/heweather_forecast/weather.py:143
Integration: Weather (documentation, issues)
First occurred: 23:12:54 (2 occurrences)
Last logged: 23:12:54

Error adding entities for domain weather with platform heweather_forecast
Error while setting up heweather_forecast platform for weather
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 692, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 789, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 545, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 583, in _async_write_ha_state
    state = self._stringify_state(available)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 551, in _stringify_state
    if (state := self.state) is None:
  File "/usr/src/homeassistant/homeassistant/components/weather/__init__.py", line 832, in state
    return self.condition
  File "/config/custom_components/heweather_forecast/weather.py", line 143, in condition
    return [k for k, v in CONDITION_CLASSES.items() if
IndexError: list index out of range
localweather不可用,显示集成“heweather_forecast”不再提供此实体。如果实体不再使用,可以在“设置”中删除它。但是sensor那些实体都可以看到信息,和风控制台也能看到请求,不知道是啥问题。
回复

使用道具 举报

0

主题

13

帖子

80

积分

注册会员

Rank: 2

积分
80
金钱
67
HASS币
0
发表于 2022-12-8 09:52:59 | 显示全部楼层
先收藏
回复

使用道具 举报

26

主题

1190

帖子

5382

积分

元老级技术达人

积分
5382
金钱
4167
HASS币
100
 楼主| 发表于 2022-12-8 11:07:35 | 显示全部楼层
Diavolo 发表于 2022-12-7 23:31
Logger: homeassistant.components.weather
Source: custom_components/heweather_forecast/weather.py:143 ...

和风返回数据格式的问题,可能我哪里没兼容好,我这边偶尔也会出,有时候重启就正常了
最近在折腾房子装修可能比较忙,空了的话我弄一下,可以关注github的更新
回复

使用道具 举报

0

主题

18

帖子

102

积分

注册会员

Rank: 2

积分
102
金钱
84
HASS币
0
发表于 2022-12-8 12:10:00 | 显示全部楼层
25989406 发表于 2022-12-8 11:07
和风返回数据格式的问题,可能我哪里没兼容好,我这边偶尔也会出,有时候重启就正常了
最近在折腾房子装 ...

系统是supervisor 11.2,反复配置了好几次都是这样,望有空更新,感谢。
回复

使用道具 举报

0

主题

2

帖子

20

积分

新手上路

Rank: 1

积分
20
金钱
18
HASS币
0
发表于 2022-12-8 12:29:29 | 显示全部楼层
感谢大佬
回复

使用道具 举报

3

主题

27

帖子

224

积分

中级会员

Rank: 3Rank: 3

积分
224
金钱
197
HASS币
0
发表于 2022-12-8 13:40:27 | 显示全部楼层
又有更新了,谢谢大佬
回复

使用道具 举报

0

主题

5

帖子

26

积分

新手上路

Rank: 1

积分
26
金钱
21
HASS币
0
发表于 2022-12-8 14:00:08 | 显示全部楼层
支持支持
回复

使用道具 举报

3

主题

27

帖子

224

积分

中级会员

Rank: 3Rank: 3

积分
224
金钱
197
HASS币
0
发表于 2022-12-8 20:16:17 | 显示全部楼层
请教一下:configuration加了如下:
weather:
  - platform: heweather_forecast
    location: 101210112
    key: 9f19
sensor:
  - platform: lifesuggestion
    ****
  - platform: heweather
    ****
  - platform: heweather_hourlyforecast
    ****
github上四个目录放到custom_components下了,为啥出现错误:
提示
Platform error sensor.lifesuggestion - Integration 'lifesuggestion' not found.
Platform error sensor.heweather - Integration 'heweather' not found.
Platform error sensor.heweather_hourlyforecast - Integration 'heweather_hourlyforecast' not found.
Platform error weather.heweather_forecast - Integration 'heweather_forecast' not found.
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-2 07:09 , Processed in 0.194297 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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