Skip to content

Homeassistant 临近天气预报 / 2小时内降雨预报

Notifications You must be signed in to change notification settings

bingooo/hass-weathercn-minute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HomeAssistant 临近天气预报

中国地区临近天气预报

安装/更新

方法2: 手动安装

下载 解压并复制 custom_components/hass-weathercn-minute 文件夹到HA配置目录下的custom_components 文件夹内

配置

配置 > 设备与服务 > 集成 > 添加集成 > 搜索 "临近天气预报"

可视化

雷达降雨量可视化(使用 ApexCharts Card

with_apexcharts
type: custom:apexcharts-card
header:
  show: true
  title: 临近降水预报
graph_span: 2h
span:
  start: minute
apex_config:
  chart:
    height: 150px
series:
  - entity: sensor.minute_summary
    data_generator: |
      const start_at = new Date(entity.attributes.start_at)
      return entity.attributes.values.map((entry, index) => {
        const time = new Date(start_at.getTime() + index * 5 * 60 * 1000);
        return [time, entry];
      });
    type: area
    show:
      in_header: false

更多可视化(使用 ApexCharts Card + Mushroom + vertical-stack-in-card

with_apexcharts_and_mushroom
type: custom:vertical-stack-in-card
horizontal: true
cards:
  - type: custom:mushroom-entity-card
    entity: sensor.minute_summary
  - type: custom:apexcharts-card
    header:
      show: false
      title: 临近降水预报
    graph_span: 2h
    layout: minimal
    span:
      start: minute
    now:
      show: true
      color: red
    apex_config:
      chart:
        height: 60px
    series:
      - entity: sensor.minute_summary
        data_generator: |
          const start_at = new Date(entity.attributes.start_at)
          return entity.attributes.values.map((entry, index) => {
            const time = new Date(start_at.getTime() + index * 5 * 60 * 1000);
            return [time, entry];
          });
        type: area
        show:
          in_header: false

实体截图

About

Homeassistant 临近天气预报 / 2小时内降雨预报

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages