Giter VIP home page Giter VIP logo

sensor.willyweather's People

Contributors

harrisony avatar safepay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sensor.willyweather's Issues

Weather by hour

The WillyWeather mobile app gives forecasts by the hour. HA supports hourly forecast, but this isnt pulling hourly data.

Is it possible to add?

No 'version' key in the manifest file

Warning when starting home assistant:

WARNING (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'willyweather'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'willyweather'

implements device_state_attributes. Please report it to the custom component author.

I am sure your aware - but I thought I'd post anyway :)

` Logger: homeassistant.helpers.entity
Source: helpers/entity.py:574
First occurred: 10:06:24 PM (54 occurrences)
Last logged: 10:07:07 PM

Entity sensor.ww_day_6_min_temp (<class 'custom_components.willyweather.sensor.WWWeatherSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.ww_day_6_rain (<class 'custom_components.willyweather.sensor.WWWeatherSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.ww_day_6_rain_probability (<class 'custom_components.willyweather.sensor.WWWeatherSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.ww_day_6_summary (<class 'custom_components.willyweather.sensor.WWWeatherSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.ww_day_6_icon (<class 'custom_components.willyweather.sensor.WWWeatherSensor'>) implements device_state_attributes. Please report it to the custom component author.

`

Days option is not working with HA

When i put the config in for the WW card I get the error

Configuration validation
Validate your configuration if you recently made some changes to your configuration and want to make sure that it is all valid
Configuration invalid
Invalid config for [sensor.willyweather]: [days] is an invalid option for [sensor.willyweather]. Check: sensor.willyweather->days. (See ?, line ?). Please check the docs at https://home-assistant.io/components/sensor.willyweather/

WWWeatherForecast is overriding deprecated methods on an instance of WeatherEntity

Just updated to 2022.8.1 and get this:

Logger: homeassistant.components.weather
Source: components/weather/__init__.py:308 
Integration: Weather (documentation, issues) 
First occurred: 12:21:26 (1 occurrences) 
Last logged: 12:21:26

custom_components.willyweather.weather::WWWeatherForecast is overriding deprecated methods on an instance of WeatherEntity, this is not valid and will be unsupported from Home Assistant 2023.1. Please report it to the custom integration author.

Seems to be quite a while before it needs too be fixed though…

Error when adding forecast_days: 7

When adding forecast_days: 7 to my config I am receiving an error.

`Logger: homeassistant.components.sensor
Source: custom_components/willyweather/sensor.py:173
Integration: Sensor (documentation, issues)
First occurred: 5:13:23 PM (1 occurrences)
Last logged: 5:13:23 PM

Error while setting up willyweather platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/willyweather/sensor.py", line 173, in setup_platform
for day, v in enumerate(ww_forecast.latest_data['forecasts']["weather"]["days"]):
KeyError: 'forecasts'
`

configuration.yaml

sensor:

  • platform: willyweather
    api_key: myapikey
    forecast_days: 7

WillyWeather config:

Screenshot 2023-02-15 at 5 19 06 pm

Everything works without forecast_days: 7

KeyError: 'observational'

It doesnt appear to have hit the WillWeather server, as that shows no use still.
HA is showing this in the logs
Im digging around, but I thought I'd post this
Home Assistant 2022.8.6
Frontend 20220802.0 - latest

Logger: homeassistant.components.sensor
Source: custom_components/willyweather/sensor.py:311
Integration: Sensor (documentation, issues)
First occurred: 4:22:49 PM (1 occurrences)
Last logged: 4:22:49 PM

Error while setting up willyweather platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/willyweather/sensor.py", line 156, in setup_platform
ww_data.update()
File "/usr/src/homeassistant/homeassistant/util/init.py", line 192, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/willyweather/sensor.py", line 311, in update
self._data = result['observational']
KeyError: 'observational'

UV data

I am using a weather card (bom-weather-card) that pulls in the UV data from BOM. For some particular reason, I trust the weather forecast more on WillyWeather so I have repoint most of the data to WillyWeather but since there isn't any UV data and some others, is it possible to pull those data into this integration?

Request: Access to forecast Wind

Hi Mate,

Happy to explore this if you would like? But I’d love to be able to include forecast data for wind. Then create automations based on that data. It’s a great help knowing this for when scheduling a boat trip.

I appreciate it would require additional data from the API... but not knowing where to start would appreciate some assistance if possible? Otherwise brilliant plug-in love it!

Cheers
Tim

"Conditions" icons missing on HA v 0.106.1

After upgrading to HA version 0.106.1, the icons next to the sensor.bom_forecast_xxxxx_N entries have disappeared. These are the icons which change, depending on the forecast conditions _ cloudy, raining, sunny, etc. The "static" icons are still showing, e.g. WW Day 0 Rain is OK.

monitor weather on two locations /stations

Can I monitor 2 locations with this component?.

I did not add station ID in the configuration.yaml. I have added two locations/stations in my willy weather account. These locations are 400km apart.

How are weather states mapped?

I'd like to use tomorrow's weather forecast to decide whether to run my pool system and heater overnight if there won’t be enough sun to run it using solar generation tomorrow. Any ideas what would be the best way to do this? Should I use the icon description in the sensors, or the summary text? What are all their possible values? And is the WillyWeather information mapped to the standard HA icons somehow?

Really appreciate any help...

Swell and Tide Data

Hi, thank you for your sensor. I'm just getting into home-assistant and I've learned a lot looking at your code. I made version that gets the tide (and swell but not yet implemented) data using your code. I hope that is okay, let me know if it isn't and I'll take it down.

0.109 identifying problem

Log Details (WARNING)
Logger: homeassistant.util.async_
Source: util/async_.py:120
First occurred: 10:01:52 AM (22 occurrences)
Last logged: 7:40:52 PM

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for willyweather doing I/O at custom_components/willyweather/weather.py, line 223: resp = requests.get(closestURL, params=closestURLParams, timeout=10).json()
Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for willyweather doing I/O at custom_components/willyweather/weather.py, line 209: result = requests.get(self._build_url(), timeout=10).json()
Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for willyweather doing I/O at custom_components/willyweather/sensor.py, line 299: result = requests.get(self._build_url(), timeout=10).json()

IO errors inside event loop

Hi,
Just installed WillyWeather sensors from HACS and added the following to my configuration.yaml file. Should I be worried about this?
sensor weather:

  • platform: willyweather
    api_key: ??????????????????????????
    Have not added frontend card yet
    Running hassio v0.110.4
    All sensors are listed and values in Developer Tools>States except the Dew Point. This is probably because its not available as a selection in API

Logger: homeassistant.util.async_
Source: util/async_.py:120
First occurred: June 1, 2020, 8:17:38 PM (31 occurrences)
Last logged: 10:58:57 AM

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for willyweather doing I/O at custom_components/willyweather/sensor.py, line 343: resp = requests.get(closestURL, params=closestURLParams, timeout=10).json()

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for willyweather doing I/O at custom_components/willyweather/sensor.py, line 299: result = requests.get(self._build_url(), timeout=10).json()

This is the API config for my account:
image

Cheers

Shane

TypeError: root is null

I am confident I have set everything according to the instructions both here and at https://github.com/iammexx/home-assistant-config/tree/master/ui/darksky

I have a UI card displaying the retrieved entities from the WillyWeather 7 day data so I know the API and retrieval is all working.

image

I have added the DarkSky js resource to the Lovelace resources config page (after getting a warning about adding it to the card config page:

image

I added the config to the UI in Raw Config Editor:

- title: TEST
    badges: []
    cards:
      - type: entities
        entities:
          - sensor.ww_cloud
          - sensor.ww_day_0_icon
          - sensor.ww_day_0_max_temp
          - sensor.ww_day_0_min_temp
          - sensor.ww_day_0_rain
          - sensor.ww_day_0_rain_probability
          - sensor.ww_day_0_summary
          - sensor.ww_day_1_icon
          - sensor.ww_day_1_max_temp
          - sensor.ww_day_1_min_temp
          - sensor.ww_day_1_rain
          - sensor.ww_day_1_rain_probability
          - sensor.ww_day_1_summary
          - sensor.ww_day_2_icon
          - sensor.ww_day_2_max_temp
          - sensor.ww_day_2_min_temp
          - sensor.ww_day_2_rain
          - sensor.ww_day_2_rain_probability
          - sensor.ww_day_2_summary
          - sensor.ww_day_3_icon
          - sensor.ww_day_3_max_temp
          - sensor.ww_day_3_min_temp
          - sensor.ww_day_3_rain
          - sensor.ww_day_3_rain_probability
          - sensor.ww_day_3_summary
          - sensor.ww_day_4_icon
          - sensor.ww_day_4_max_temp
          - sensor.ww_day_4_min_temp
          - sensor.ww_day_4_rain
          - sensor.ww_day_4_rain_probability
          - sensor.ww_day_4_summary
          - sensor.ww_day_5_icon
          - sensor.ww_day_5_max_temp
          - sensor.ww_day_5_min_temp
          - sensor.ww_day_5_rain
          - sensor.ww_day_5_rain_probability
          - sensor.ww_day_5_summary
          - sensor.ww_day_6_icon
          - sensor.ww_day_6_max_temp
          - sensor.ww_day_6_min_temp
          - sensor.ww_day_6_rain
          - sensor.ww_day_6_rain_probability
          - sensor.ww_day_6_summary
          - sensor.ww_dew_point
          - sensor.ww_feels_like
          - sensor.ww_humidity
          - sensor.ww_pressure
          - sensor.ww_rain_last_hour
          - sensor.ww_rain_since_9am
          - sensor.ww_rain_today
          - sensor.ww_temperature
          - sensor.ww_wind_bearing
          - sensor.ww_wind_direction
          - sensor.ww_wind_gust
          - sensor.ww_wind_speed
      - type: custom:dark-sky-weather-card
        entity_current_conditions: sensor.ww_day_0_icon
        entity_current_text: sensor.ww_day_0_summary
        entity_forecast_high_temp_1: sensor.ww_day_1_max_temp
        entity_forecast_high_temp_2: sensor.ww_day_2_max_temp
        entity_forecast_high_temp_3: sensor.ww_day_3_max_temp
        entity_forecast_high_temp_4: sensor.ww_day_4_max_temp
        entity_forecast_high_temp_5: sensor.ww_day_5_max_temp
        entity_forecast_icon_1: sensor.ww_day_0_icon
        entity_forecast_icon_2: sensor.ww_day_1_icon
        entity_forecast_icon_3: sensor.ww_day_2_icon
        entity_forecast_icon_4: sensor.ww_day_3_icon
        entity_forecast_icon_5: sensor.ww_day_4_icon
        entity_forecast_low_temp_1: sensor.ww_day_0_min_temp
        entity_forecast_low_temp_2: sensor.ww_day_1_min_temp
        entity_forecast_low_temp_3: sensor.ww_day_2_min_temp
        entity_forecast_low_temp_4: sensor.ww_day_3_min_temp
        entity_forecast_low_temp_5: sensor.ww_day_4_min_temp
        entity_summary_1: sensor.ww_day_0_summary
        entity_summary_2: sensor.ww_day_1_summary
        entity_summary_3: sensor.ww_day_2_summary
        entity_summary_4: sensor.ww_day_3_summary
        entity_summary_5: sensor.ww_day_4_summary
        entity_temperature: sensor.ww_temperature
        entity_sun: sun.sun
        entity_daytime_high: sensor.ww_day_0_max_temp
        entity_wind_bearing: sensor.ww_wind_bearing
        entity_wind_speed: sensor.ww_wind_speed
        entity_humidity: sensor.ww_humidity
        entity_pressure: sensor.ww_pressure
        entity_apparent_temp: sensor.ww_feels_like
        entity_pop: sensor.ww_day_0_rain_probability
        entity_pop_1: sensor.ww_day_1_rain_probability
        entity_pop_2: sensor.ww_day_2_rain_probability
        entity_pop_3: sensor.ww_day_3_rain_probability
        entity_pop_4: sensor.ww_day_4_rain_probability
        entity_pop_5: sensor.ww_day_5_rain_probability

This resulted in the error below

2021-09-19 22:59:21 ERROR (MainThread) [frontend.js.latest.202108300] https://homeassistant.xxxxx.dev/local/custom_ui/dark-sky-weather-card.js?v=7.1:709:9 TypeError: root is null

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.