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

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

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

  [复制链接]

0

主题

18

帖子

104

积分

注册会员

Rank: 2

积分
104
金钱
86
HASS币
0
发表于 2022-8-23 15:32:11 | 显示全部楼层
收藏了,谢谢!
回复

使用道具 举报

0

主题

3

帖子

32

积分

新手上路

Rank: 1

积分
32
金钱
29
HASS币
0
发表于 2022-8-23 17:33:16 | 显示全部楼层
25989406 发表于 2022-8-22 16:28
reminder 没有,配好了的话叫:sensor.remind

大概明白咋回事啦, 例如 disaster_warn, 咱们配置 应该认为是一个文本,
最新的文档 是个数组
{
    "code": "200",
    "updateTime": "2022-08-23T17:33+08:00",
    "fxLink": "http://hfx.link/2bg5",
    "warning": [
        {
            "id": "10102060020220823170000487942591",
            "sender": "上海中心气象台",
            "pubTime": "2022-08-23T17:00+08:00",
            "title": "上海中心气象台发布暴雨橙色预警[Ⅱ级/严重]",
            "startTime": "2022-08-23T17:00+08:00",
            "endTime": "2022-08-24T17:00+08:00",
            "status": "update",
            "level": "橙色",
            "severity": "Severe",
            "severityColor": "Orange",
            "type": "1003",
            "typeName": "暴雨",
            "urgency": "",
            "certainty": "",
            "text": "上海中心气象台2022年08月23日17时00分发布暴雨橙色预警[Ⅱ级/严重]:受较强的降水云团影响,预计未来3-4小时内中心城区、浦东北部、嘉定、宝山等地将出现一小时80毫米以上的短时强降水,暴雨黄色预警信号更新为暴雨橙色预警信号。",
            "related": "10102060020220823152000062916926"
        },
        {
            "id": "10102060020220823161300738668568",
            "sender": "浦东新区气象局",
            "pubTime": "2022-08-23T16:13+08:00",
            "title": "浦东新区气象局发布暴雨黄色预警[Ⅲ级/较重]",
            "startTime": "2022-08-23T16:13+08:00",
            "endTime": "2022-08-24T16:13+08:00",
            "status": "update",
            "level": "黄色",
            "severity": "Moderate",
            "severityColor": "Yellow",
            "type": "1003",
            "typeName": "暴雨",
            "urgency": "",
            "certainty": "",
            "text": "浦东新区气象局2022年08月23日16时13分发布暴雨黄色预警[Ⅲ级/较重]:受较强的雷暴云团影响,预计未来3-4小时内本区北蔡、周家渡等中北部街镇将出现一小时雨量50毫米以上短时强降水,暴雨蓝色预警信号更新为暴雨黄色预警信号。",
            "related": "10102060020220823132500849857747"
        },
        {
            "id": "10102060020220823153700843383841",
            "sender": "浦东新区气象局",
            "pubTime": "2022-08-23T15:37+08:00",
            "title": "浦东新区气象局发布大风黄色预警[Ⅲ级/较重]",
            "startTime": "2022-08-23T15:37+08:00",
            "endTime": "2022-08-24T15:37+08:00",
            "status": "active",
            "level": "黄色",
            "severity": "Moderate",
            "severityColor": "Yellow",
            "type": "1006",
            "typeName": "大风",
            "urgency": "",
            "certainty": "",
            "text": "浦东新区气象局2022年08月23日15时37分发布大风黄色预警[Ⅲ级/较重]:受雷暴云团影响,预计未来6小时内本区大部分街镇将出现8-10级的雷雨大风,请加强防范。",
            "related": ""
        },
        {
            "id": "10102060020220823115800468866748",
            "sender": "上海中心气象台",
            "pubTime": "2022-08-23T11:58+08:00",
            "title": "上海中心气象台发布雷电黄色预警[Ⅲ级/较重]",
            "startTime": "2022-08-23T11:58+08:00",
            "endTime": "2022-08-24T11:58+08:00",
            "status": "active",
            "level": "黄色",
            "severity": "Moderate",
            "severityColor": "Yellow",
            "type": "1014",
            "typeName": "雷电",
            "urgency": "",
            "certainty": "",
            "text": "上海中心气象台2022年08月23日11时58分发布雷电黄色预警[Ⅲ级/较重]:预计今天半夜以前本市大部地区将发生雷电活动,局部地区伴有一小时20-40毫米的短时强降水和7-9级雷雨大风,请注意防范。",
            "related": ""
        }
    ],
    "refer": {
        "sources": [
            "12379"
        ],
        "license": [
            "no commercial use"
        ]
    }
}
回复

使用道具 举报

0

主题

10

帖子

164

积分

注册会员

Rank: 2

积分
164
金钱
154
HASS币
0
发表于 2022-8-23 18:40:55 | 显示全部楼层
学习一下,刚刚入门hass
回复

使用道具 举报

26

主题

1190

帖子

5382

积分

元老级技术达人

积分
5382
金钱
4167
HASS币
100
 楼主| 发表于 2022-8-24 12:05:46 | 显示全部楼层
avatasia 发表于 2022-8-23 17:33
大概明白咋回事啦, 例如 disaster_warn, 咱们配置 应该认为是一个文本,
最新的文档 是个数组
{

嗯 是这个意思
我是根据这个风险级别筛选了一下,
            "severity"
只保留text和title的内容用作告警
回复

使用道具 举报

0

主题

4

帖子

30

积分

新手上路

Rank: 1

积分
30
金钱
26
HASS币
0
发表于 2022-8-24 23:45:39 | 显示全部楼层
学习一下
回复

使用道具 举报

1

主题

29

帖子

222

积分

中级会员

Rank: 3Rank: 3

积分
222
金钱
193
HASS币
0
发表于 2022-8-25 00:03:09 | 显示全部楼层
支持大佬
回复

使用道具 举报

1

主题

29

帖子

222

积分

中级会员

Rank: 3Rank: 3

积分
222
金钱
193
HASS币
0
发表于 2022-8-25 10:53:20 | 显示全部楼层
2022-08-25 02:44:15.928 ERROR (MainThread) [homeassistant.components.weather] Error while setting up heweather_forecast platform for weather
File "/config/custom_components/heweather_forecast/weather.py", line 69, in async_setup_platform
async_add_devices([LocalWeather(data)], True)
File "/config/custom_components/heweather_forecast/weather.py", line 81, in __init__
2022-08-25 02:45:27.926 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform heweather is taking over 10 seconds.
2022-08-25 02:45:27.926 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform heweather_hourlyforecast is taking over 10 seconds.
2022-08-25 02:45:28.154 ERROR (MainThread) [custom_components.heweather_hourlyforecast.sensor] Error while accessing: https://devapi.qweather.com/v7/w ... 13b9b1be8480a758145
2022-08-25 02:45:28.160 ERROR (MainThread) [homeassistant.components.sensor] Setup of platform heweather is taking longer than 60 seconds. Startup will proceed without waiting any longer.
2022-08-25 02:45:28.160 ERROR (MainThread) [homeassistant.components.sensor] Setup of platform heweather_hourlyforecast is taking longer than 60 seconds. Startup will proceed without waiting any longer.
2022-08-25 02:45:28.273 ERROR (MainThread) [custom_components.heweather.sensor] Error while accessing: https://devapi.qweather.com/v7/w ... 13b9b1be8480a758145
2022-08-25 02:45:28.503 ERROR (MainThread) [homeassistant.components.sensor] heweather_hourlyforecast: Error on device update!
File "/config/custom_components/heweather_hourlyforecast/sensor.py", line 206, in async_update
2022-08-25 02:45:28.504 ERROR (MainThread) [homeassistant.components.sensor] heweather_hourlyforecast: Error on device update!
File "/config/custom_components/heweather_hourlyforecast/sensor.py", line 142, in async_update
2022-08-25 02:45:28.505 ERROR (MainThread) [homeassistant.components.sensor] heweather_hourlyforecast: Error on device update!
File "/config/custom_components/heweather_hourlyforecast/sensor.py", line 149, in async_update
2022-08-25 02:45:28.505 ERROR (MainThread) [homeassistant.components.sensor] heweather_hourlyforecast: Error on device update!
File "/config/custom_components/heweather_hourlyforecast/sensor.py", line 156, in async_update
2022-08-25 02:45:28.506 ERROR (MainThread) [homeassistant.components.sensor] heweather_hourlyforecast: Error on device update!
File "/config/custom_components/heweather_hourlyforecast/sensor.py", line 163, in async_update


求助,lifesuggesttion是正常的,其他的状态都是未知,天气在ha里没有显示
回复

使用道具 举报

0

主题

7

帖子

200

积分

中级会员

Rank: 3Rank: 3

积分
200
金钱
193
HASS币
0
发表于 2022-8-25 11:32:49 | 显示全部楼层
感谢大佬 试试看
回复

使用道具 举报

0

主题

8

帖子

48

积分

新手上路

Rank: 1

积分
48
金钱
40
HASS币
0
发表于 2022-8-25 15:22:52 | 显示全部楼层
学习一下车。
回复

使用道具 举报

2

主题

36

帖子

1114

积分

金牌会员

Rank: 6Rank: 6

积分
1114
金钱
1078
HASS币
0
发表于 2022-8-25 15:48:31 | 显示全部楼层
顶大神,学习一下
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-29 18:19 , Processed in 0.134881 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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