Sponsored by Deepsite.site

Admin

Created By
c1pher-cn5 months ago
Content

和风天气 homeassistant插件

我使用的插件最早引用自瀚思彼岸智能家居技术论坛 Golden_Soap大佬的插件,但该插件很久没有更新过配置,导致我的环境一直无法运行,自己肝的原因主要是懒得改之前的参数配置,换插件全得改一遍,有的数据还没了,又正好借着这个机会能再学习下插件的逻辑,哈哈哈。

如果觉得对你有帮助,就来b站支持一波吧:小愚

使用说明:

1.使用和风官方apiv7版本

2.必须申请开发者账号里的免费api,请务必升级到开发者账号(免费,api权限会比普通用户高一些)https://console.qweather.com/#/console

3.appkey申请需要先创建项目,后选创建凭据,选API KEY即可

国内的城市区域location关系:https://github.com/qwd/LocationList/blob/master/China-City-List-latest.csv

4.在和风控制台的设置页面查看自己分配的API host:https://console.qweather.com/setting?lang=zh

5.新版本整合优化了sensor以及相关中文名字,图标。将原有的24小时天天气预报从sensor中转移到weather里

配置方法

建议使用webui的配置流程

依照流程配置即可,不了解的参数参考下面手工配置说明来获取/配置

手工配置和参数说明

1.天气预报,默认支持7天和24小时预报,放在weather里,

weather:
  - platform: heweather
    location: 101210106        # 填写你所在区域代码Location_ID,https://github.com/qwd/LocationList/blob/master/China-City-List-latest.csv
    host: devapi.qweather.com  # 开发者信息中的API Host
    key: ABCDE                 # api平台申请的key

2.天气情况、空气质量、自然灾害预警、各种生活指数,放在sensor里

sensor:
  - platform: heweather
    location: 101210106        # 填写你所在区域代码Location_ID,https://github.com/qwd/LocationList/blob/master/China-City-List-latest.csv
    host: devapi.qweather.com  # 开发者信息中的API Host
    key: ABCDE                 # api平台申请的key
    disasterlevel: 3
    disastermsg: allmsg

sensor里的其他两个参数:

disasterlevel:表示关注的自然灾害等级,1-6为从轻微到严重

配置3表示关注 >=3级的灾害,下为不同等级的英文描述

  Standard           1  最轻微
  Minor              2
  Moderate           3  
  Major              4
  Severe             5
  Extreme            6  最严重

disastermsg:表示灾害预警是否显示灾害的明细信息

title  只显示标题

allmsg 显示标题+明细信息

自动化配置实例

https://www.bilibili.com/read/cv18078640

Server Config

{
  "mcpServers": {
    "amap-maps": {
      "command": "npx",
      "args": [
        "-y",
        "@amap/amap-maps-mcp-server"
      ],
      "env": {
        "AMAP_MAPS_API_KEY": "abcd1234efgh5678ijkl9012"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Serper MCP ServerA Serper MCP Server
WindsurfThe new purpose-built IDE to harness magic
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Tavily Mcp
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Amap Maps高德地图官方 MCP Server
Playwright McpPlaywright MCP server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
DeepChatYour AI Partner on Desktop
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
ChatWiseThe second fastest AI chatbot™
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
CursorThe AI Code Editor
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.