# HA-nodered

本文作者:[WTB]

# nodered节点

node-red-contrib-rate-avg
node-red-contrib-home-assistant-websocket

# homeassistant

ha没有addon,如何和nodered关联,可到微信视频号里详细查看,ha主要采用apexchart卡片,电压获取示例:

type: custom:apexcharts-card
graph_span: 1h
show:
last_updated: true
header:
standard_format: false
show: true
show_states: true
colorize_states: true
title: 电压(伏特-V)
series:
- entity: sensor.mod_1_va_2
    name: A相
    type: line
    float_precision: 2
    group_by:
    func: max
    duration: 5min
    stroke_width: 2
    show:
    extremas: true
    header_color_threshold: true
- entity: sensor.mod_1_vb_3
    name: B相
    type: line
    float_precision: 2
    group_by:
    func: max
    duration: 5min
    stroke_width: 2
    show:
    extremas: true
    header_color_threshold: true
- entity: sensor.mod_1_vc
    name: C相
    type: line
    group_by:
    func: max
    duration: 5min
    stroke_width: 2
    show:
    extremas: true
    header_color_threshold: true
- entity: sensor.mod_1_vd_2
    name: D相
    type: line
    group_by:
    func: max
    duration: 5min
    stroke_width: 2
    show:
    extremas: true
    header_color_threshold: true
WTB物联网   |