Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106256

Multiple states in one entity - how to split into individual sensors

$
0
0

I am running CumulusMX software for my weather station and it sends out MQTT messages (“Data Update”) to my HA server. There are not many options for the MQTT message.

The Entity “sensor.cumulusmx_dataupdate” has multiple states combined in it (time, windspeed, winddir, wgust. etc.).

CumulusMX MQTT

I want to be able to split these out into individual sensors, but am unsure how to do this.

My sensor for “windspeed” right now is as follows (not working):

  - platform: template
    sensors:
      cumulusmx_windspeed:
        friendly_name: CumulusMX Wind Speed
        unit_of_measurement: 'mph'
        value_template: '{{ states.sensor.cumulusmx_dataupdate.attributes.windspeed|round }}'

Any ideas how I can do this?

5 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 106256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>