HAuser1234 / homeassistant-local-weather-forecast

Homeassistant local weather forecast. ~90% accurate*
GNU Affero General Public License v3.0
21 stars 7 forks source link

strange title #1

Closed shipdocs closed 1 year ago

shipdocs commented 1 year ago

hi, i am new to HA and tried to implement this.

I created the integrations folder, in it created the weater_forecast.yaml with this:

Sensors

template:

sensor:

I also installed mushroom and the vertical card thingie,

But in my dashboard i see: Schermafdruk_2023-05-18_22-40-14

shipdocs commented 1 year ago

oh when editing the card i see

this._configElement.setConfig is not a function

HAuser1234 commented 1 year ago

hi, did you restart your homeassistant instance after installing everything? Also try clearing your browser cache. Are you sure that every entity is correct?

This is most likely wrong:

{% set pressure = sensor.lumi_lumi_weather_pressure|float(0)%}
{% set temp = sensor.lumi_lumi_weather_temperature|float(1)%}

it should be states.sensor.ENITITY_ID.state. Therefore this should be the way:

{% set pressure = states.sensor.lumi_lumi_weather_pressure.state|float(0)%}
{% set temp = states.sensor.lumi_lumi_weather_temperature.state|float(1)%}

also these lines:

{% set wind_dir = states.sensor.weatherstation_wind_direction.state|int(0)%}

{# -----> set wind speed (optional else 0) <----- #}
{%set wind_speed = states.sensor.weatherstation_wind_speed.state|float(0)%}

should be set to 0 like:


{% set wind_dir = 0 |int(0)%}

{# -----> set wind speed (optional else 0) <----- #}
{%set wind_speed = 0 |float(0)%}

also your barometer entity most likely does deliver the pressure at sealevel(?) therefore this should be:

{# -----> pressure at sealevel: set to 1 else set to 0 (needed) <-----#}
{% set pressure_sea = 1%}
shipdocs commented 1 year ago

Many thanks!

It looks better already now, sorry but i am not a programmer. [afbeelding.png]

i probably just need to wait for some more data before its perfect right? ------- Original Message ------- On Friday, May 19th, 2023 at 10:36, HAuser1234 @.***> wrote:

hi, did you restart your homeassistant instance after installing everything? Also try clearing your browser cache. Are you sure that every entity is correct?

This is most likely wrong:

{% set pressure = sensor.lumi_lumi_weather_pressure|float(0)%} {% set temp = sensor.lumi_lumi_weather_temperature|float(1)%}

it should be states.sensor.ENITITY_ID.state. Therefore this should be the way:

{% set pressure = states.sensor.lumi_lumi_weather_pressure.state|float(0)%} {% set temp = states.sensor.lumi_lumi_weather_temperature.state|float(1)%}

also these lines:

{% set wind_dir = states.sensor.weatherstation_wind_direction.state|int(0)%}

{# -----> set wind speed (optional else 0) <----- #} {%set wind_speed = states.sensor.weatherstation_wind_speed.state|float(0)%}

should be set to 0 like:

{% set wind_dir = 0 |int(0)%}

{# -----> set wind speed (optional else 0) <----- #} {%set wind_speed = 0 |float(0)%}

also your barometer entity most likely does deliver the pressure at sealevel(?) therefore this should be:

{# -----> pressure at sealevel: set to 1 else set to 0 (needed) <-----#} {% set pressure_sea = 1%}

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

HAuser1234 commented 1 year ago

sorry I can't see the picture, but you are most likely right.

shipdocs commented 1 year ago

Yes! after some patience, it started working! Many thanks!