(07-01-2024, 10:21)uncle_bob Wrote: Here's the data I'm using so far.
Since the image is not visible, I decided to supplement this solution with an even more detailed guide:
1) definition in CumulusMX software
2) definitions, for example, in the file /homeassistant/mqtt.yaml (here it is in Czech language)
Code:
# MQTT - CumulusMX
sensor:
- name: "Teplota vzduchu"
state_topic: "CumulusMX/Interval"
suggested_display_precision: 1
unit_of_measurement: "°C"
value_template: "{{ value_json.temp }}"
- name: "Vlhkost"
state_topic: "CumulusMX/Interval"
suggested_display_precision: 1
unit_of_measurement: "%RH"
value_template: "{{ value_json.humidity }}"
- name: "Rychlost větru"
state_topic: "CumulusMX/DataUpdate"
suggested_display_precision: 1
unit_of_measurement: "m/s"
value_template: "{{ value_json.windspeed }}"
- name: "Směr větru"
state_topic: "CumulusMX/DataUpdate"
unit_of_measurement: "°"
value_template: "{{ value_json.winddir }}"
- name: "Nárazy"
state_topic: "CumulusMX/Interval"
suggested_display_precision: 1
unit_of_measurement: "m/s"
value_template: "{{ value_json.wgust }}"
- name: "Sluneční radiace"
state_topic: "CumulusMX/Interval"
unit_of_measurement: "W/m2"
value_template: "{{ value_json.SolarRad }}"
- name: "UVI"
state_topic: "CumulusMX/Interval"
suggested_display_precision: 1
unit_of_measurement: ""
value_template: "{{ value_json.UVI }}"
- name: "Srážky"
state_topic: "CumulusMX/Interval"
unit_of_measurement: "mm"
suggested_display_precision: 1
value_template: "{{ value_json.rfall }}"
- name: "Intenzita srážek"
state_topic: "CumulusMX/Interval"
unit_of_measurement: "mm/h"
value_template: "{{ value_json.rrate }}"
3) result "text"
and definition of Entity card
Code:
type: entities
entities:
- entity: sensor.teplota_vzduchu
icon: mdi:thermometer
secondary_info: last-updated
- entity: sensor.vlhkost
secondary_info: last-updated
icon: mdi:water-percent
- entity: sensor.rychlost_vetru
secondary_info: last-updated
icon: mdi:weather-windy
- entity: sensor.smer_vetru
secondary_info: last-updated
icon: mdi:directions-fork
- entity: sensor.narazy
secondary_info: last-updated
icon: mdi:windsock
- entity: sensor.uvi
secondary_info: last-updated
icon: mdi:sun-wireless
- entity: sensor.slunecni_radiace
secondary_info: last-updated
icon: mdi:sun-angle
- entity: sensor.srazky
secondary_info: last-updated
icon: mdi:weather-rainy
- entity: sensor.intenzita_srazek
secondary_info: last-updated
icon: mdi:weather-rainy
theme: Animated Weather Card
state_color: true
title: Údaje meteo stanice
show_header_toggle: false
4) example of graphic processing
and its definition
Code:
type: history-graph
entities:
- entity: sensor.teplota_vzduchu
- entity: sensor.uvi
- entity: sensor.slunecni_radiace
title: Meteo stanice
hours_to_show: 12
5) finally, a preview of the functionality of my MQTT server using MQTT Eplorer