Met no weather condition - possible states

Wehere can I find the possible states of the plugin for the state condition?

It just says sunny, but the API doesn’t mention that:
https://api.met.no/weatherapi/locationforecast/2.0/documentation#Weather_icons

1 Like

Is there a way to reduce the amount of conditions to the “main categories”?

    ATTR_CONDITION_CLEAR_NIGHT,
    ATTR_CONDITION_CLOUDY,
    ATTR_CONDITION_FOG,
    ATTR_CONDITION_LIGHTNING_RAINY,
    ATTR_CONDITION_PARTLYCLOUDY,
    ATTR_CONDITION_POURING,
    ATTR_CONDITION_RAINY,
    ATTR_CONDITION_SNOWY,
    ATTR_CONDITION_SNOWY_RAINY,
    ATTR_CONDITION_SUNNY,

The list for lighting_rainy alone is huge. Lightning_rainy would be more than enough.

        "heavyrainandthunder",
        "heavyrainandthunder_day",
        "heavyrainandthunder_night",
        "heavyrainshowersandthunder",
        "heavyrainshowersandthunder_day",
        "heavyrainshowersandthunder_night",
        "heavysleetandthunder",
        "heavysleetandthunder_day",
        "heavysleetandthunder_night",
        "heavysleetshowersandthunder",
        "heavysleetshowersandthunder_day",
        "heavysleetshowersandthunder_night",
        "heavysnowandthunder",
        "heavysnowandthunder_day",
        "heavysnowandthunder_night",
        "heavysnowshowersandthunder",
        "heavysnowshowersandthunder_day",
        "heavysnowshowersandthunder_night",
        "lightrainandthunder",
        "lightrainandthunder_day",
        "lightrainandthunder_night",
        "lightrainshowersandthunder",
        "lightrainshowersandthunder_day",
        "lightrainshowersandthunder_night",
        "lightsleetandthunder",
        "lightsleetandthunder_day",
        "lightsleetandthunder_night",
        "lightsnowandthunder",
        "lightsnowandthunder_day",
        "lightsnowandthunder_night",
        "lightssleetshowersandthunder",
        "lightssleetshowersandthunder_day",
        "lightssleetshowersandthunder_night",
        "lightssnowshowersandthunder",
        "lightssnowshowersandthunder_day",
        "lightssnowshowersandthunder_night",
        "rainandthunder",
        "rainandthunder_day",
        "rainandthunder_night",
        "rainshowersandthunder",
        "rainshowersandthunder_day",
        "rainshowersandthunder_night",
        "sleetandthunder",
        "sleetandthunder_day",
        "sleetandthunder_night",
        "sleetshowersandthunder",
        "sleetshowersandthunder_day",
        "sleetshowersandthunder_night",
        "snowshowersandthunder",
        "snowshowersandthunder_day",
        "snowshowersandthunder_night",

I want to use own images for the conditions.

im not sure what your particular sensor will “show”, but in case it shows something you wont, you need a template, i.e something like ( is state “pouring” | str_attr = Rainy )

Let me know when you find out :grin:

PS: for the template to shows “less variables”, try search for template where “state” is “replaced” with “own string” (show something else for state), … doesn’t matter what it is for, as long as the “function” is “replace state value”

PS: Example from “documentation for template”

template:
  - sensor:
      - name: "Sun State"
        state: >
          {% if is_state('sun.sun', 'above_horizon') %}
            up
          {% else %}
            down
          {% endif %}

This , above example, could be “converted” to “fit in” a “Custom:Template-Entity-Row” … so you get it in your Card(for the entity), instead of a separate Template

I think you will get answers to all your thoughts and questions by follow (reading) below + included links

But wait.

Right now the state is sunny.

This is not a condition according this list.
Could it be that the states are only these ones and the sub states are used for the icons only?

CLEAR_NIGHT
CLOUDY
FOG
LIGHTNING_RAINY
PARTLYCLOUDY
POURING
RAINY
SNOWY
SNOWY_RAINY
SUNNY

Now we have SUNNY…

I really don’t know what you are talking about

There are “ATTR_CONDITION_” and " CONDITIONS_MAP

So maybe you should just “wait it out”, come back next week, i really don’t “See” what you see (in front of you) and i don’t know which “integration” you use, or how what “plugin” you refers to … so maybe we are actually on different “planets” :slight_smile:

And this is the “Actual” States

  "clear-night": "Clear, night",
  "cloudy": "Cloudy",
  "exceptional": "Exceptional",
  "fog": "Fog",
  "hail": "Hail",
  "lightning": "Lightning",
  "lightning-rainy": "Lightning, rainy",
  "partlycloudy": "Partly cloudy",
  "pouring": "Pouring",
  "rainy": "Rainy",
  "snowy": "Snowy",
  "snowy-rainy": "Snowy, rainy",
  "sunny": "Sunny",
  "windy": "Windy",
  "windy-variant": "Windy"
1 Like

And this is how it looks like at my end …

Sunny2

PS: Thou i have removed “Header” on the 5days Forecast

Yeah, I don’t know either :slight_smile:

State delivers “sunny” and I’m using the integrated met no component.

So if I understand correctly these are the only states for that?

 "clear-night": "Clear, night",
  "cloudy": "Cloudy",
  "exceptional": "Exceptional",
  "fog": "Fog",
  "hail": "Hail",
  "lightning": "Lightning",
  "lightning-rainy": "Lightning, rainy",
  "partlycloudy": "Partly cloudy",
  "pouring": "Pouring",
  "rainy": "Rainy",
  "snowy": "Snowy",
  "snowy-rainy": "Snowy, rainy",
  "sunny": "Sunny",
  "windy": "Windy",
  "windy-variant": "Windy"

So I only need images for these states, right?

I believe so yes … i haven’t so far seen others than Cloudy, Partly clody, Sunny, Rainy, Snow, Windy … And actually i ONLY want to se “Sunny” :grin: … it can rain at night for my sake :slight_smile:

Agree on this one. Thanks for your help.

1 Like