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

How to set up this sensor?

$
0
0

@Makis wrote:

I just install an anemometer (reports values through mqtt)

  - platform: mqtt
    name: "Wind Speed"
    state_topic: "anemometer/wind"
    unit_of_measurement: 'km/h'

Since it reports values very often I added the below sensor in order to have a better sample

  - platform: statistics
    entity_id: sensor.wind_speed
    name: wind speed average 1 minute
    #unit_of_measurement: 'km/h'
    sampling_size: 30
    max_age:
      minutes: 2

I am getting the wind speed from other sources too (comparison) so I have the following (final for my automation) sensor

  - platform: min_max
    #type: max
    name: Wind Speed Automation
    entity_ids:
      - sensor.marousi
      - sensor.dark_sky_wind_speed
      - sensor.ha_wind_speed
      #- sensor.wind_speed_average_1_minute

As you can see I tried to add my personal stats (sensor.wind_speed_average_1_minute) but I am getting value unknown.

In logs said something like “different measurement” that’s why I tried to add the “km/h” but it wouldn’t pass the configuration validation.

Any ideas how I could have the max value from these sensors?

Annotation 2020-05-03 204232

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 106100

Trending Articles



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