safepay / sensor.willyweather Goto Github PK
View Code? Open in Web Editor NEWA WillyWeather Australian Bureau of Meteorology (BoM) integration for Home Assistant
License: GNU General Public License v3.0
A WillyWeather Australian Bureau of Meteorology (BoM) integration for Home Assistant
License: GNU General Public License v3.0
The WillyWeather mobile app gives forecasts by the hour. HA supports hourly forecast, but this isnt pulling hourly data.
Is it possible to add?
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'
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.
`
The dates show perfectly on chrome. The issue is when browsing on the Home Assistant iOS app or safari, the dates show as "Invalid Date". The fix is to use the timestamp format "yyyy-mm-ddThh:mm:ss".
https://community.home-assistant.io/t/timestamp-cant-show-in-ios-app-but-working-on-chrome/102714
After upgrading to HA 2023.09.0, the following error is reported:
The integration willyweather
is using the deprecated forecast attribute.
More info:
https://www.home-assistant.io/blog/2023/09/06/release-20239/#weather-forecast-service
Would be nice to be able to set a different update frequency to the hard-coded 30 minutes.
Any chance you could pull in Tide info? I'd prefer to use an Aussie service for all my info.
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/
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…
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:
WillyWeather config:
Everything works without forecast_days: 7
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'
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?
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
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.
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.
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...
I am searching HACS but can't find the integration. Is it still available?
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.
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()
I'm seeing an 'exceptional' status for the current days weather. Screenshot of the issue: https://imgur.com/4OBREmF
Hi,
Just installed WillyWeather sensors from HACS and added the following to my configuration.yaml file. Should I be worried about this?
sensor weather:
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:
Cheers
Shane
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.
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:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.