Comments (32)
OK so looks to me like you have sending sensors to the card that don't exist. Typically the forecast sensors will have a different prefix to the observations and also some of the entities require the template sensors. So the best thing to check is to open dev-tools states page and check that all the sensors exist and are available. The only reason the card won't show is because some sensors are missing.
from bom-weather-card.
So no response....
If you are still having problems, show me your full lovelace config (post the code not a screenshot) as well as any yaml templates you are using and send your lat/long to [email protected] so I can set up the same BOM sensors as you and see what the issue is. Otherwise I'm closing this now.
from bom-weather-card.
Thank you for your response @DavidFW1960 and sorry for the late response, I have been super busy with work this week and have not had a change to come back to this until today.
So I took a look and indeed the sensors are different to what I had posted, I had simply copied your YAML and replaced your location with mine in the hopes that it worked - alas it did not.
So I have noticed that the sensors change between sensor.adelaide_west_terrace_ngayirdpira and sensor.stepeters.xxx
Is the code below essentially the code required to create the card above? and is the temp_max_1, 2, 3 etc the different days?
Thanks so much!
type: custom:bom-weather-card
title: BOM Weather
entity_current_conditions: sensor.adelaide_west_terrace_ngayirdapira_icon_descriptor_0
entity_temperature: sensor.adelaide_west_terrace_ngayirdapira_temp
entity_forecast_high_temp_1: sensor.adelaide_west_terrace_ngayirdapira_temp_max_1
entity_forecast_high_temp_2: sensor.adelaide_west_terrace_ngayirdapira_temp_max_2
entity_forecast_high_temp_3: sensor.adelaide_west_terrace_ngayirdapira_temp_max_3
entity_forecast_high_temp_4: sensor.adelaide_west_terrace_ngayirdapirag_temp_max_4
entity_forecast_high_temp_5: sensor.adelaide_west_terrace_ngayirdapira_temp_max_5
entity_forecast_icon_1: sensor.adelaide_west_terrace_ngayirdapira_icon_descriptor_1
entity_forecast_icon_2: sensor.adelaide_west_terrace_ngayirdapira_icon_descriptor_2
entity_forecast_icon_3: sensor.adelaide_west_terrace_ngayirdapira_icon_descriptor_3
entity_forecast_icon_4: sensor.adelaide_west_terrace_ngayirdapira_icon_descriptor_4
entity_forecast_icon_5: sensor.adelaide_west_terrace_ngayirdapira_icon_descriptor_5
entity_forecast_low_temp_1: sensor.adelaide_west_terrace_ngayirdapira_temp_min_1
entity_forecast_low_temp_2: sensor.adelaide_west_terrace_ngayirdapira_temp_min_2
entity_forecast_low_temp_3: sensor.adelaide_west_terrace_ngayirdapira_temp_min_3
entity_forecast_low_temp_4: sensor.adelaide_west_terrace_ngayirdapira_temp_min_4
entity_forecast_low_temp_5: sensor.adelaide_west_terrace_ngayirdapira_temp_min_5
entity_summary_1: sensor.adelaide_west_terrace_ngayirdapira_short_text_1
entity_summary_2: sensor.adelaide_west_terrace_ngayirdapira_short_text_2
entity_summary_3: sensor.adelaide_west_terrace_ngayirdapira_short_text_3
entity_summary_4: sensor.adelaide_west_terrace_ngayirdapira_short_text_4
entity_summary_5: sensor.adelaide_west_terrace_ngayirdapira_short_text_5
entity_sun: sun.sun
from bom-weather-card.
Please email your lat/long so I can create your sensors to test the yaml and find the issue.
from bom-weather-card.
Thanks so much @DavidFW1960, I have sent through an email - really appreciate it :)
from bom-weather-card.
OK So I added your location and using the default names, I see:
sensor.adelaide_west_terrace_ngayirdapira_* for the Observation sensors and I see sensor.st_peters_* for the forecast sensors
SO..
type: custom:bom-weather-card
title: BOM Weather
entity_temperature: sensor.adelaide_west_terrace_ngayirdapira_temp
entity_current_conditions: sensor.st_peters_icon_descriptor_0
entity_forecast_high_temp_1: sensor.st_peters_temp_max_1
entity_forecast_high_temp_2: sensor.st_peters_temp_max_2
entity_forecast_high_temp_3: sensor.st_peters_temp_max_3
entity_forecast_high_temp_4: sensor.st_peters_temp_max_4
entity_forecast_high_temp_5: sensor.st_peters_temp_max_5
entity_forecast_icon_1: sensor.st_peters_icon_descriptor_1
entity_forecast_icon_2: sensor.st_peters_icon_descriptor_2
entity_forecast_icon_3: sensor.st_peters_icon_descriptor_3
entity_forecast_icon_4: sensor.st_peters_icon_descriptor_4
entity_forecast_icon_5: sensor.st_peters_icon_descriptor_5
entity_forecast_low_temp_1: sensor.st_peters_temp_min_1
entity_forecast_low_temp_2: sensor.st_peters_temp_min_2
entity_forecast_low_temp_3: sensor.st_peters_temp_min_3
entity_forecast_low_temp_4: sensor.st_peters_temp_min_4
entity_forecast_low_temp_5: sensor.st_peters_temp_min_5
entity_summary_1: sensor.st_peters_short_text_1
entity_summary_2: sensor.st_peters_short_text_2
entity_summary_3: sensor.st_peters_short_text_3
entity_summary_4: sensor.st_peters_short_text_4
entity_summary_5: sensor.st_peters_short_text_5
entity_sun: sun.sun
Which is a start but you will need to add some additional sensors to create my example and also some template sensors to get the current text etc...
So see how you go with that..
from bom-weather-card.
Thank you so much, I will give that a shot How did you get the text in the middle and at the bottom?
from bom-weather-card.
Dude read the docs and the use the example templates and full lovelace configuration not just the minimal one.
from bom-weather-card.
Hi David,
I am a noob at HA but have tried to follow your install docs to the letter, although I suspect Ive done something wrong somewhere... When I add the Lovelace card in HA, the card is blank.
I installed through HACS and the line "/hacsfiles/bom-weather-card/bom-weather-card.js" was added as a "JavaScript Module" to the resources section. Now I can add the Lovelace card to the dashboard. When I goto add a card, I am presented with this:
Is this what it it should look like, or should it resemble this?:
I have installed the BOM plug in and have those sensors working in a standard entity card, but cannot get your card to populate. When I added the card described above, I edited the yaml as per below:
`type: custom:bom-weather-card
title: BOM Weather
entity_current_conditions: sensor.murrays_run_icon_descriptor_0
entity_temperature: sensor.gosford_temp
entity_forecast_high_temp_1: sensor.murrays_run_temp_max_1
entity_forecast_high_temp_2: sensor.murrays_run_temp_max_2
entity_forecast_high_temp_3: sensor.murrays_run_temp_max_3
entity_forecast_high_temp_4: sensor.murrays_run_temp_max_4
entity_forecast_high_temp_5: sensor.murrays_run_temp_max_5
entity_forecast_icon_1: sensor.murrays_run_icon_descriptor_1
entity_forecast_icon_2: sensor.murrays_run_icon_descriptor_2
entity_forecast_icon_3: sensor.murrays_run_icon_descriptor_3
entity_forecast_icon_4: sensor.murrays_run_icon_descriptor_4
entity_forecast_icon_5: sensor.murrays_run_icon_descriptor_5
entity_forecast_low_temp_1: sensor.murrays_run_temp_min_1
entity_forecast_low_temp_2: sensor.murrays_run_temp_min_2
entity_forecast_low_temp_3: sensor.murrays_run_temp_min_3
entity_forecast_low_temp_4: sensor.murrays_run_temp_min_4
entity_forecast_low_temp_5: sensor.murrays_run_temp_min_5
entity_summary_1: sensor.murrays_run_short_text_1
entity_summary_2: sensor.murrays_run_short_text_2
entity_summary_3: sensor.murrays_run_short_text_3
entity_summary_4: sensor.murrays_run_short_text_4
entity_summary_5: sensor.murrays_run_short_text_5
locale: en
sunset: true
static_icons: false
old_icon: hybrid
tooltip_bg_color: rgb( 75,155,239)
tooltip_border_color: rgb(255,161,0)
tooltip_border_width: 1
tooltip_caret_size: 5
tooltip_fg_color: '#fff'
tooltip_left_offset: -12
tooltip_width: 110
tooltips: true
old_daily_format: false
time_format: 12
show_beaufort: false
refresh_interval: 60
show_separator: false
temp_top_margin: 0px
temp_font_weight: 300
temp_font_size: 4em
temp_right_pos: 0.85em
temp_uom_top_margin: '-12px'
temp_uom_right_margin: 4px
apparent_top_margin: 45px
apparent_right_pos: 1em
apparent_right_margin: 1em
current_text_top_margin: 4.5em
current_text_left_pos: 0px
current_text_font_size: 1.5em
current_text_alignment: center
current_text_width: 100%
current_data_top_margin: 10em
large_icon_top_margin: '-3.2em'
large_icon_left_position: 0px
separator_top_margin: 6em
summary_top_padding: 2em
summary_font_size: 0.8em
slot_l1: daytime_high
slot_l2: daytime_low
slot_l3: wind
slot_l4: pressure
slot_l5: sun_next
slot_r1: pop
slot_r2: humidity
slot_r3: uv_summary
slot_r4: fire_summary
slot_r5: sun_following
`
I have also revised your weather.yaml to revise references from kariong and gosford to mangrove_mountain and murrays_run and downloaded the icons and put them in the folder structure you mention in the install doc...
Looking for a few words of wisdom to help me find my way!
Thanks
Jon
from bom-weather-card.
It should look like:
ie the second one (probably depends on the theme you are using)
Click on it:
you should see something like this
Where you put the config.
Your resourse should look like this:
with the hacs tag at the end......
from bom-weather-card.
Thanks David.
I suspect you might be onto something re the theme in terms of the black on white in your screenshots and white on black in mine. However, I dont have the hacs tag in the resources. Is that a unique ID at the end, or can I use the number in the screenshot above? If its unique, how do I establish what it should be?
Thanks
Jon
from bom-weather-card.
As long as you are using the latest HACS it should include the HACS tag itself. The tag needs to be put there by HACS as it uses that to ensure HACS installed it and you will get an error if it didn't and HACS is loaded. It uses that tag to prevent the !@#$%^&* annoying chrome caching when you update the card. HACS should store the URL with the tag itself.
from bom-weather-card.
Thanks David. Finally got it working by going over your instructions again (and again) and double checking that all my entities that you identified as the minimum required for it to work were in-fact valid. I can confirm that it only takes one miss-spelt entity to stop the thing working entirely!
Only one smaller problem now and I suspect it might be entity related and that is that my "Today's High" and "Today's Low" always show 'NaN'
Im pretty sure that I read something about this when I first started reading about your card, but of course I cant find it now! Any pointers to this problem would be grately appreciated.
Thx
Jon
from bom-weather-card.
Typically you need template sensors and either statistics or a custom-component (average) to fill in the high/low when BOM stops publishing values (typically in the afternoon). There are examples in the weather.yaml package. Make sure the entity you are pushing to the card for min/max has a real value...
from bom-weather-card.
Thanks David. Ive looked at this a bit more in the card and also weather yaml.
Considering only the Max temps at the moment as the Min looks to work in exactly the same way...
My High entity is "sensor.murrays_run_temp_max_0". This has a value and shows the correct data if I put it into a standard entity card. This is also correctly entered into weather.yaml. Still within weather.yaml, associated with the High value there is an entity sensor.bom_today_max. This returns a value of 'Unknown'. I found further down in weather.yaml; where this value is defined. It appears to come via sensor.today_temp_bom and I do not have this entity in my HA. This is where my trail goes dead. I am not sure what to do with this now.
An alternative appears to be discussed / suggested in weather.yaml and requires the above routines to be ## out and the alternative un-##. When I do this and modify the appropriate line entry in the card (entity_daytime_high: sensor.murrays_run_temp_max_0), after a restart I can see the correct High.
This alternative appears to still try to get a value from sensor.today_temp_bom snd in the event it fails, fall back to sensor.murrays_run_temp_max_0.
Am I correct in thinking that the only difference is that if / when BOM stops publishing the High, with the first / default option, the High will not goto NaN because its using an internal value, whereas with the second option, if/when stops publishing the High reverts to Nan (until it gets re-published tomorrow)?
Thx
J
from bom-weather-card.
You can parse that through to the card as the max if you want BUT BOM will publish that as N/A at some poing through the day. It used to be at ~ 4PM but now seems to be ~ 10PM. The Min used to be N/A at ~4AM and now does it during the afternoon.
The statistics seensor or custom average component will use the current temperature for the past day to calculate the average value (which is useless) but it also gets the minimum and maximum temperature from that and a template sensor in the yaml file then populates sensor.bom_today_max and sensor.bom_today_min. If you don't have sensor.today_temp_bom you have not created the statistics sensor OT the average component correctly. You can ONLY use one of those components - statistics or average and you comment the other one out (with the ## or delete the lines)
This alternative appears to still try to get a value from sensor.today_temp_bom snd in the event it fails, fall back to sensor.murrays_run_temp_max_0.
You can do that and I used to do it previously (and still do for the minimal card) but I find it more valuable if it returns the actual values... but you can do whatever makes sense to you.
Am I correct in thinking that the only difference is that if / when BOM stops publishing the High, with the first / default option, the High will not goto NaN because its using an internal value, whereas with the second option, if/when stops publishing the High reverts to Nan (until it gets re-published tomorrow)?
Yep.
from bom-weather-card.
Thanks David, I'll have another lool through the code and instructions for the statistics and see what I can fathom:)
from bom-weather-card.
Make sure you have the current temperature correct in the average sensor - check the state for that sensor in dev-tools... then check the template sensor is extracting the min and max from the average sensor - again in dev tools. It's going to be something as simple as that that is causing unknown etc... If you really can't work it out then email me [email protected] your lat and long so I can add your location to the BOM integration and then I can give you a weather.yaml and lovelace config for your location.... but it's pretty basic to fix this..
from bom-weather-card.
Still getting blanks using the sample template with no edits
what sensor in the template might actually be missing ?
from bom-weather-card.
Have you checked all the sensors in the card exist? Check one by one in dev-tools. Its likely to be pressure. BOM pretty much doesn't supply pressure so unless you have some other source as I do that can cause a problem.
from bom-weather-card.
I do not even have pressure sensor in the config file and its still trying to run it ?
from bom-weather-card.
There is a bug we made yesterday. Do you have a slot configured for pressure? Try setting that slot to empty.
from bom-weather-card.
I have not even been able to get that far , nothing related to this displays
even a bare bone
type: custom:bom-weather-card
title: BOM Weather
entity_sun: sun.sun
or is that some option to do with https://github.com/bremor/bureau_of_meteorology
as you said you have a bug I am redoing with an older version , wasted a day so far trying to get this to load
from bom-weather-card.
Pressure is slot L4 slot by default unless you override it manually. The slot defaults are shown in the docs. Normally if you dont define a slot it will automatically be blank but we screwed up with the new method of UOM for pressure that it blanked the card if there was no pressure entity.
We fixed this today with 1.02 so you can pull the master or set slot L4: empty should fix it
from bom-weather-card.
We are looking at a release next week that will do error checking on the card and tell you what entity is causing this problem
from bom-weather-card.
it hates me
/config/configuration.yaml
contains
homeassistant:
packages: !include_dir_named packages
can you verify /config/packages is where the "weather.yaml" "illuminance.yaml" files should live ?
I have been using "lovelace.yaml"
as the raw data when I go edit card as by default its only contains
type: custom:bom-weather-card
installed with HACS
I downloaded the icons and they are in
/config/www/icons
/config/www/community/icons
/config/www/community/bom-weather-card/icons
/config/www/community/bom-weather-card
contains just bom-weather-card.js
Home Assistant 2022.4.7
Host Operating System | Home Assistant OS 7.6
Update Channel | stable
Supervisor Version | supervisor-2022.04.0
Docker Version | 20.10.9
also your 1.02 shows as 1.01 in dev mode still
shutdown the server multiple times as well
and even started using virtualmachine with a saved state to rollback to so that rules out cache issues as well
from bom-weather-card.
Yeah i didnt bump the version in js before I did the release. If you pull master it will be 1.02.
Weather.yaml and illuminance.yaml are packages. They go in /config/packages. Totally seperate to lovelace. You can look up packages in ha docs.
Are the icons in the right place re my readme file? I can't remember and I'm on my phone at the moment
from bom-weather-card.
If you edit the card in the gui it should list all the entities and configuration for the card not just the type. Might be caching? I can give this more attention tomorrow when i am at my computer. I do have some lawn mowing duties in the morning though. You should be able to paste the contents of lovelace.yaml into the gui card editor
from bom-weather-card.
their is no GUI and I have used multiple browsers so not a caching issue
the last version from today has this error
get currentApparent() {
var places = this.config.show_decimals ? 1 : 0;
return this.config.entity_apparent_temp ? Number(this._hass.states[this.config.entity_apparent_temp].state).toLocaleString(undefined, {minimumFractionDigits: places, maximumFractionDigits: places}) : 0;
}
here a video
https://drive.google.com/file/d/1M89GPAbDRANOJppYbd88AWXiN7V5thnW/view?usp=sharing
from bom-weather-card.
Have you taken control of Lovelace? If you have then you paste the yaml here
Otherwise the lovelace file you are using (but the indenting in my example won't be right probably
from bom-weather-card.
views:
- title: Home
cards:
- type: custom:bom-weather-card
title: BOM Weather
entity_current_conditions: sensor.kariong_icon_descriptor_0
entity_temperature: sensor.gosford_temp
entity_forecast_high_temp_1: sensor.kariong_temp_max_1
entity_forecast_high_temp_2: sensor.kariong_temp_max_2
entity_forecast_high_temp_3: sensor.kariong_temp_max_3
entity_forecast_high_temp_4: sensor.kariong_temp_max_4
entity_forecast_high_temp_5: sensor.kariong_temp_max_5
entity_forecast_icon_1: sensor.kariong_icon_descriptor_1
entity_forecast_icon_2: sensor.kariong_icon_descriptor_2
entity_forecast_icon_3: sensor.kariong_icon_descriptor_3
entity_forecast_icon_4: sensor.kariong_icon_descriptor_4
entity_forecast_icon_5: sensor.kariong_icon_descriptor_5
entity_forecast_low_temp_1: sensor.kariong_temp_min_1
entity_forecast_low_temp_2: sensor.kariong_temp_min_2
entity_forecast_low_temp_3: sensor.kariong_temp_min_3
entity_forecast_low_temp_4: sensor.kariong_temp_min_4
entity_forecast_low_temp_5: sensor.kariong_temp_min_5
entity_summary_1: sensor.kariong_short_text_1
entity_summary_2: sensor.kariong_short_text_2
entity_summary_3: sensor.kariong_short_text_3
entity_summary_4: sensor.kariong_short_text_4
entity_summary_5: sensor.kariong_short_text_5
entity_sun: sun.sun
entity_daytime_high: sensor.bom_today_max
entity_daytime_low: sensor.bom_today_min
entity_wind_bearing: sensor.gosford_wind_direction
entity_wind_speed: sensor.gosford_wind_speed_kilometre
entity_wind_gust: sensor.gosford_gust_speed_kilometre
entity_humidity: sensor.gosford_humidity
entity_apparent_temp: sensor.gosford_temp_feels_like
entity_daily_summary: sensor.kariong_extended_text_0
entity_pop: sensor.kariong_rain_chance_0
entity_pop_intensity: sensor.gosford_rain_since_9am
entity_possible_today: sensor.kariong_rain_amount_range_0
entity_pos_1: sensor.kariong_rain_amount_range_1
entity_pos_2: sensor.kariong_rain_amount_range_2
entity_pos_3: sensor.kariong_rain_amount_range_3
entity_pos_4: sensor.kariong_rain_amount_range_4
entity_pos_5: sensor.kariong_rain_amount_range_5
entity_pop_1: sensor.kariong_rain_chance_1
entity_pop_2: sensor.kariong_rain_chance_2
entity_pop_3: sensor.kariong_rain_chance_3
entity_pop_4: sensor.kariong_rain_chance_4
entity_pop_5: sensor.kariong_rain_chance_5
entity_current_text: sensor.bom_current_text
entity_uv_alert: sensor.bom_uv_alert
entity_fire_danger: sensor.bom_fire_danger
entity_uv_alert_summary: sensor.uv_cat_formatted
entity_fire_danger_summary: sensor.kariong_fire_danger_0
locale: en
sunset: true
static_icons: false
old_icon: hybrid
tooltip_bg_color: rgb( 75,155,239)
tooltip_border_color: rgb(255,161,0)
tooltip_border_width: 1
tooltip_caret_size: 5
tooltip_fg_color: '#fff'
tooltip_left_offset: -12
tooltip_width: 110
tooltips: true
old_daily_format: false
time_format: 12
show_beaufort: false
refresh_interval: 60
show_separator: false
temp_top_margin: 0px
temp_font_weight: 300
temp_font_size: 4em
temp_right_pos: 0.85em
temp_uom_top_margin: '-12px'
temp_uom_right_margin: 4px
apparent_top_margin: 45px
apparent_right_pos: 1em
apparent_right_margin: 1em
current_text_top_margin: 4.5em
current_text_left_pos: 0px
current_text_font_size: 1.5em
current_text_alignment: center
current_text_width: 100%
current_data_top_margin: 10em
large_icon_top_margin: '-3.2em'
large_icon_left_position: 0px
separator_top_margin: 6em
summary_top_padding: 2em
summary_font_size: 0.8em
slot_l1: daytime_high
slot_l2: daytime_low
slot_l3: wind
slot_l4: pop
slot_l5: sun_next
slot_r1: pop
slot_r2: humidity
slot_r3: uv_summary
slot_r4: fire_summary
slot_r5: sun_following
just your default with that pressure sensor changed
from bom-weather-card.
ok so I have no idea what's going on. Can I do a remote login via teamviewer to see what is happening? Send me a PM on the forum with your phone number so we can connect.
from bom-weather-card.
Related Issues (20)
- Ability to make certain sensors come from different providers? HOT 2
- when unpkg.com is misbehaving, the bom card won't render. HOT 4
- Daytime_high and daytime_low display values differently HOT 10
- Increase overall scaling HOT 1
- Authenticated depreciated HOT 1
- Installation procedure problem HOT 3
- BOM Integration HOT 3
- How do i configure another weather provider than BOM? HOT 1
- Display Location Title HOT 1
- Clarification of directory structures for manual install in readme HOT 3
- Custom element doesn't exist: bom-weather-card. HOT 2
- BOM Radar Card HOT 1
- UV_summary not displaying HOT 3
- Sunrise / sunset icons incorrect after data update HOT 3
- BOM forecast weird indentation HOT 4
- Commit #85 does not allow UoM from entity HOT 14
- Layout Broken and/or new version not detected? HOT 22
- Average calculation failing for today_temp_bom HOT 3
- Card doesn't work well with HA 2022.6.x HOT 9
- bom_today_max and bom_today_min template sensors HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bom-weather-card.