Customising the BOM Weather and lovelace - now in HACS

thanks for the info, makes sense

Looks like the old BoM integration (now a custom component) had a hiccup after my last restart (lost all sensors). Thought it was the card update but the log showed different. Restarted again and it was back to normal.

I suppose I should update to Brendanā€™s new integration. Is there much involved in changing over?

Iā€™ve already got the new Radar card up and running.

You definitely should tomā€¦ the sensor names will all need updating of courseā€¦ See examples and my package and you can do some search and replace edits.

Yeah Iā€™m doing it now. This is going to take ages. So many changed sensors. Not just for lovelace, but template sensors (yours and my own) , recorder excludes, cutomizations, etcā€¦

Edit, ok this is no good Iā€™m rolling back. No pressure sensor or dew point.

Yeah pressure and dew missingā€¦ can still use FTP component. Brendan is going to use that for dew_pt and pressure at some point as an optionā€¦

Ok good to know itā€™s in the works. Will leave updating for another day.

1 Like

Youā€™re on borrowed time. I have no idea how long either the old BOM or FTP will even workā€¦

You can calculate the dew point if you need it. See here https://iridl.ldeo.columbia.edu/dochelp/QA/Basic/dewpoint.html

I use a BME280 to get pressure tooā€¦ I donā€™t know why BOM donā€™t publish pressure for their airport stations where it is availableā€¦

Iā€™ll keep using it until it stops working or until the replacement matures.

1 Like

Hi guys,
Iā€™ve got a problem with min_temp_0 hopefully you can help with.
The entity seems to be getting data, it can create a graph as an entity, but it shows as ā€œunknownā€, which in your awesome card shows as NaN.
Any ideas why this might be happening??

minTemp0

Yeah. BOM zeros out the min around 3PM I think which is why I use a template sensor with average custom component to display the actual minimum since midnight for today. See the docs. Maybe I didnā€™t explain it clearly enough. You will see the min_0 state in dev-tools is also n/a

Ah, missed that in the docs. Yeah, it does show as unknown in the dev-tools as well. So me thinking ā€œIā€™m sure this used to workā€ is because you had to change how you get the data a couple of updates ago?

I have always used a template sensor to get around thisā€¦ itā€™s always gone n/a except with the old integration it used to do it at 3am. You will also see the max disappear around 10PM as well as fire/uv the as well.

I used to check if the state was n/a before substituting the actual minimum/maximum from the average sensorā€¦ but that actually doesnā€™t really make sense to me now so I just am using the actual. You can write your own template sensors to do whatever makes sense to you and parse those entities through to the card. My package and templates are just examples of how I use this card and make sense to me but you are free to use whatever data source or entities you want to use for this. My card doesnā€™t care as long as the parsed entity exists it will hapily use itā€¦

Cool, Iā€™ll give it a look. Iā€™ve never delved into templates before, might be a good excuse to learn.
Thanks mate!

1 Like

Donā€™t forget you can use my package which has the templatesā€¦

1 Like

hi all - just updated
ā€¢ Update Bom Weather Card v0.84 to v0.85c via HACS*
ā€¢ Update Bureau of Meteorology v0.8.3 to 0.9.1 via HACS*

now getting all the cards failing to load and noticed

2020-12-06 22:15:34 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up bureau_of_meteorology platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/bureau_of_meteorology/sensor.py", line 62, in async_setup_entry
if config_entry.data[CONF_OBSERVATIONS_CREATE] == True:
KeyError: 'observations_create'

any suggestions???

remove the bom component integration, restart HA and add it back again. There were some breaking changes in the integration. You will also probably need to revisit the card templates and config when you get the integration working properly again tooā€¦

1 Like

ok - HACS integration removed,restart,re-added,restartedā€¦ Exact same error still for the integration :frowning:

did you mean the HACS bom integration or the HA bom integration?

I meant after you add the custom_component in HACS and restart, you need to add the integration so the sensors are created. However all the names etc have changed in the latest component so you have to delete the integration in configuration GUI, restart HA and add the integration againā€¦