davidfw1960 / bom_forecast Goto Github PK
View Code? Open in Web Editor NEWBOM Australian Weather Forecast via FTP
BOM Australian Weather Forecast via FTP
Hi, trying to get the weather to show the forecast as per your guide. But when I add the card it only shows current temp. I think I am getting confused some where.
In HACS I have the BOM weather card, but in the dashboard when I go to add it I can only see the standard forecast card and custom weather card.
In Dashboard I select the custom weather card and in the drop down entity weather.bom_terrey_hills but it just shows current temp and all the other variables.
I have the folder /config/custom_components/bom_forecast installed via HAC and has the relevant files installed.
This is my configuration.yaml file.
weather:
sensor:
I'm not running the alternative install version so never had the fancy icons. But my bom_forecast Lovelace card did show the standard md:icons
for the dynamic conditions. Something has changed in either this platform or in the last HA update (0.106.x) that has resulted in these icons no longer showing up.
Hi,
I have used HACS to install and when I add this to my config file:
# BOM Weather
- platform: bom_forecast
product_id: IDV10450
name: Melbourne
forecast_days: 6
rest_of_today: true
friendly: false
friendly_state_format: '{max}, {summary}'
monitored_conditions:
- 'max'
- 'min'
- 'chance_of_rain'
- 'possible_rainfall'
- 'summary'
- 'detailed_summary'
- 'icon'
- 'uv_alert'
- 'fire_danger'
I get:
Platform error weather.bom_forecast - No module named 'custom_components.bom_forecast.weather'
when I check my config
I have this in my custom components folder that HACS installed:
How can I resolve this?
Thanks in advance
Hi @DavidFW1960
I've installed the bom_forecast as a HACS Integration.
I'm getting "Unknown" for the sensor.bom_forecast_0 and all other forecast sensors.
I'm sorry I a newbie so I'm sure its me not understanding something in the way I've installed this.
I thought I had followed all the instructions carefully.
configuration.yaml has the lines
homeassistant:
packages: !include_dir_named packages
the config/packages folder has weather.yaml
the secrets.yaml has the following lines
my_bom_station: IDV60801.95936
my_bom_name: Melbourne
my_bom_product_id: IDV60801
Hi,
Trying to setup the BOM Forecast module and I seem to be running into difficulty in getting it up and running :-(
I have tried manual installation, installing through HACS and manually "helping" the installation by providing the template and sensors using the HACS install side by side, nothing I do seems to be working, I am running HA on Hyper V from the HA provided virtual disk, weather is setup and running as it should.
The error that HA is throwing on each restart is:
2020-10-13 22:47:47 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up bom_forecast platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/bom_forecast/sensor.py", line 252, in setup_platform
bom_forecast_data.update()
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/bom_forecast/sensor.py", line 489, in update
ftp.retrbinary('RETR ' + self._product_id + '.xml', file_obj.write)
File "/usr/local/lib/python3.8/ftplib.py", line 425, in retrbinary
with self.transfercmd(cmd, rest) as conn:
File "/usr/local/lib/python3.8/ftplib.py", line 382, in transfercmd
return self.ntransfercmd(cmd, rest)[0]
File "/usr/local/lib/python3.8/ftplib.py", line 348, in ntransfercmd
resp = self.sendcmd(cmd)
File "/usr/local/lib/python3.8/ftplib.py", line 275, in sendcmd
return self.getresp()
File "/usr/local/lib/python3.8/ftplib.py", line 248, in getresp
raise error_perm(resp)
ftplib.error_perm: 550 Failed to open file.
I am sure I am likely just doing something incorrect, any help you could provide would be much appreciated!
Hi David,
Recently found a bit more reliable way for myself to track the weather. https://weather.bom.gov.au/location/r659gg5-gosford. It has json API behind and I think easier to parse data. This is just in case you missed that site (for me I found it accidentally and haven't heard before).
Thank you for your plugin anyway!!!
Dmitry
Hi there, thanks for building this custom integration. I've installed via HACS and used the weather.yaml package pre-0.115.x. Using Melbourne as my location, I did a find and replace on 'gosford' for 'melbourne' and these are my bom station/product/name configs:
my_bom_station:
my_bom_name: Melbourne
my_bom_product_id: IDV10450
My problem is that I'm getting all forecasts come through except for the min temp of today:
I've tried forcing an update via the homeassistant.updateentity restarting home assistant. Logs don't show anything sinister in particular.
Here are all my min_0 blocks of yaml:
bom_forecast_0:
entity_id:
- sensor.bom_today_max
- sensor.bom_today_min
- sensor.bom_melbourne_chance_of_rain_0
- sensor.bom_melbourne_icon_0
friendly_name: "Today"
value_template: >
{{states('sensor.bom_today_max')|round(0)}}°/{{states('sensor.bom_today_min')|round(0)}}°/{{states('sensor.bom_melbourne_chance_of_rain_0')|round(0)}}%
entity_picture_template: >-
{%- if states('sun.sun') == 'below_horizon' and (states('sensor.bom_melbourne_icon_0') == 'fog' or states('sensor.bom_melbourne_icon_0') == 'haze' or states('sensor.bom_melbourne_icon_0') == 'light-showers' or states('sensor.bom_melbourne_icon_0') == 'partly-cloudy' or states('sensor.bom_melbourne_icon_0') == 'showers') -%}
{{ '/local/icons/bom_icons/' ~ states('sensor.bom_melbourne_icon_0') ~ '-night.png' }}
{%- else -%}
{{ '/local/icons/bom_icons/' ~ states('sensor.bom_melbourne_icon_0') ~ '.png' }}
{%- endif -%}
bom_today_min:
entity_id:
- sensor.bom_melbourne_min_temp_c_0
- sensor.today_temp_bom
value_template: >
{%- if states('sensor.bom_melbourne_min_temp_c_0') == 'n/a' -%}
{{ state_attr('sensor.today_temp_bom', 'min_value') }}
{% else %}
{{ states('sensor.bom_melbourne_min_temp_c_0') }}
{% endif %}
Any ideas on how to get this one working?
Can't get this to work, Using the Melbourne forecast location. Using weather.yaml and packages. Not sure where the bom icons go either?
I understand that you are using your own icons for this repo and not the mdi icons, however can I suggest that you create a new attribute called entity_picture. This can use your icons and leave the icons attribute as original.
It helps this integration work more globally instead of just your use case.
Thanks for this amazing integration. Finally get it work.
There's one warning in the HA log.
Logger: homeassistant.components.template.sensor
Source: helpers/config_validation.py:752
Integration: template (documentation, issues)
First occurred: 2:56:35 PM (9 occurrences)
Last logged: 2:56:35 PM
The 'entity_id' option is deprecated, please remove it from your configuration
I believe this is due to entity_id is used in weather.yaml. Not sure how to remove entity_id in that template. Would you please help? Thanks.
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.