GithubHelp home page GithubHelp logo

bom_forecast's People

Contributors

bremor avatar davidfw1960 avatar michaelthomasmpt avatar nickneos avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

bom_forecast's Issues

Need help. Getting "Unknown" results in forecast

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

Tutorial - Help on how to configure Bom_Forecast - hope it helps others

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:

  • platform: bom
    station: IDN60901.94759

sensor:

  • platform: bom
    station: IDN60901.94759
    monitored_conditions:
    • apparent_t
    • cloud
    • cloud_base_m
    • cloud_oktas
    • cloud_type_id
    • cloud_type
    • delta_t
    • gust_kmh
    • gust_kt
    • air_temp
    • dewpt
    • local_date_time
    • local_date_time_full
    • press
    • press_qnh
    • press_msl
    • press_tend
    • rain_trace
    • rel_hum
    • sea_state
    • swell_dir_worded
    • swell_height
    • swell_period
    • vis_km
    • weather
    • wind_dir
    • wind_spd_kmh
    • wind_spd_kt
  • platform: bom_forecast
    #product_id: IDN11060
    name: Terrey Hills #In my examples I use Gosford
    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'

Allow usage of MDI icons

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.

All except today's min temp are available

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:
image

image

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?

Not working for me

Can't get this to work, Using the Melbourne forecast location. Using weather.yaml and packages. Not sure where the bom icons go either?

Capture

  • platform: bom_forecast
    product_id: IDV10450
    name: Watsonia
    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'

Platform error weather.bom_forecast

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'
Screen Shot 2020-04-21 at 12 04 07 pm

when I check my config

I have this in my custom components folder that HACS installed:
Screen Shot 2020-04-21 at 12 05 32 pm

How can I resolve this?

Thanks in advance

JSON API for weather

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

Issue installing BOM Forecast Module

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!

MD "conditions" icons not showing

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.

The 'entity_id' option is deprecated, please remove it from your configuration

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.

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.