Can't get one particular sensor to display in a tab; others display fine

Running Hass.io v0.63.2 on a RPi3, trying to get pollen sensor data to display – https://home-assistant.io/components/sensor.pollen/ .

These display fine:

  - allergy_index_today
  - allergy_index_tomorrow

This one does not:

  - allergy_average_forecasted

Strangely enough, when the sensor displays in a default tab, it shows up:

#default_view:
Downstairs:

But then it disappears with:

default_view:
#Downstairs:

Relevant section from configuration.yaml:

# Sensors
sensor:
  - platform: yr
  - platform: darksky
    api_key: [redacted]
    monitored_conditions:
      - temperature_max
      - temperature
#      - precip_probability
#      - precip_intensity_max
    update_interval: 600
  - platform: uptime
  - platform: sonarr
    api_key: [redacted]
    host: 192.168.1.15
    monitored_conditions:
      - diskspace
      - upcoming
      - queue
    days: 2
  - platform: pollen
    zip_code: 29651
    monitored_conditions:
      - allergy_index_today
      - allergy_index_tomorrow
      - allergy_average_forecasted

Relevant section from groups.yaml:

default_view:
#Downstairs:
  view: yes
  name: Downstairs
  entities:
    - updater.updater
    - sensor.uptime
    - sensor.yr_symbol
    - sensor.dark_sky_daily_high_temperature
    - sensor.dark_sky_temperature
    - sensor.allergy_index_today
    - sensor.allergy_index_tomorrow
    - sensor.allergy_average_forecasted
    - group.downstairs_lights
    - group.family_room_lamps
    - group.gavins_bathroom
    - group.kitchen_lights
    - group.master_suite
    - group.office
    - group.downstairs_tradfri

P.S. I originally posted this over on github. Kind of decided that it wasn’t a problem with the platform and so posted over here.

Have a look in your states page (little <> icon in the dev panel on the left) and see what the sensor is called.

Sometimes they end up with a random underscore on the end or something, so you have to get it exactly right in the group listing.

1 Like

Great suggestion! There I found that the sensor is named sensor.allergy_index_forecasted_average.

I’m not sure why that would happen given the instructions for configuration.yaml:

  monitored_conditions:
    - allergy_average_forecasted

It’s always been my experience that just adding sensor. to the beginning returns the sensor data. But sure enough: when I add sensor.allergy_index_forecasted_average to groups.yaml, the sensor appears alongside its companions in my tab.

Great idea! Thanks!

1 Like