briis / weatherbit

The weatherbit integration adds support for the weatherbit.io web service as a source for meteorological data for your location.
MIT License
33 stars 7 forks source link

Problem with Home Assistant 2024.3 #96

Open Hoarerport opened 6 months ago

Hoarerport commented 6 months ago

Hi, this Problem is found after Installing weatherbit on Home Assistant 2024.3 "Logger: homeassistant.components.weather Source: components/weather/init.py:387 Integration: Wetter (documentation, issues)

weatherbit::WeatherbitWeatherEntity implements the forecast property or sets self._attr_forecast in a subclass of WeatherEntity, this is deprecated and will be unsupported from Home Assistant 2024.3. "

Please update the Entitiy. Thanks Pauker

briis commented 6 months ago

Please ser the README om the front page. Unless someone else wants to continue this integration it will close down in march.

Hoarerport commented 6 months ago

Ok, sorry unfortunately I missed your information. Thanks for your answer and your work. It's a shame that it doesn't continue. The solar radiation values in particular would have been interesting : translation with google ;-) greetings Pauker

greg520820 commented 6 months ago

You can still pull weatherbit values by using a rest command. Example code below was added to configuration.yaml. You can set your desired scan interval in the rest command or set it very high, like the example, and use an automation to update the sensors . I'm updating every 30 minutes, but only between sunrise and dusk.

rest:
  - scan_interval: 86400
    resource: "https://api.weatherbit.io/v2.0/current?lat=xx.1127&lon=-xx.3911&key=xxxxxxxxxxxxx"
    sensor:
      - name: "AQI"
        value_template: "{{ value_json['data'][0]['aqi'] }}"

      - name: "Solar"
        value_template: "{{ value_json['data'][0]['solar_rad'] | round(0) }}"
        unit_of_measurement: "W/M2"