Yeah, same thing is happening here, not sure what I did wrong. Probably won’t get a chance to look at it until the end of the week, but if anyone figures it out before then let me know!
Is it possible to update the MDI icons based on conditions (e.g., sun when it is sunny and clouds when it is cloudy)? Wonderground returns entity_picture and icon_url and it will be nice if we can use those as icons?
I’ve started work on customizing the new WU setup. I’ve only gotten a few things done but my goal is to set up most (not all) of the possible sensors with names and icons and I’ll post them here as YAML files that you can copy and paste. This is going to take some time as each sensor has to be created as a template, then I get the naming and do the customizations and include them in a group. There’s a lot of figuring on what the proper name should be and what applicable icon fits as well as whether it’s included in the recent HA version.
I’ll post as soon as I get things tested out. Hopefully work will progress on the code while I am working on this. It would be nice to figure out how to add the relevant measurement units like “degrees F” or “mph” to the actual values if someone can figure that out.
That looks pretty cool! Will these be coded in or setup through customize:? And I like having the station id at the top. I’m adding that to my group name
What I’ll do is create YAML files; one will be all of the sensor templates for almost all of the attributes I can format. The next will be groups entries with everything I set up in sensor templates so it will show up. The third will be a customizations file with all of the friendly names and icons.
Three files in YAML format to make it easy to copy and paste (or I suppose include, though I don’t know if I’ll get around to testing that for a bit) into your relevant HA config files.
There’s a lot of attributes and I don’t intend to get them all; only the most relevant ones. But I may go back and get the rest later if there’s interest.
Here’s the set for the example image, tell me if this works for you guys before I spend too much time with it so I know I’m on the right track.
OK here we go… Here’s what the output looks like - keep in mind that I couldn’t show everything or else the window would take up the whole forum! So I only captured the Fahrenheit/Imperial sensors, but they are all there and the sensor icons for the Celsius/Metric sensors are the same.
I believe I got almost all the sensors but if there is one I missed that you need, use my examples or ask me. Everything is separated conveniently into sections so you can delete the ones you don’t use.
There are three files here:
sensor_templates.yaml - all of the templated sensors for the shared, imperial and metric measurements. This goes in your sensors section; number it appropriately if you don’t use a separate sensors.yaml file and are adding it to your configuration.yaml
group_config.yaml - all of the named sensors in one group. Same rules as above.
customizations.yaml - all of the friendly names and icons. Same rules as above.
Enjoy - this is my way of giving back to the group. Let me know if you have any issues; my suggestion would be to back up ALL your YAML files before doing this and be very careful about editing! If you end up with a bunch of badge sensors on your front page, you probably missed a space or something. It happened to me more than once laying this all out.
Nobody’s tried this yet? I’m kinda bummed; I put so much work into it.
Seems to be working fine for me, I’ve made some order adjustments and I’m looking at a few more attributes. I’d just like to hear feedback from anybody so I know whether this made it any easier to implement.
I forgot to take into account people who don’t already have sensor templates!! I’m sorry about that, Taubin!!
EDIT: I just updated the sensor_templates.yaml file to include this with a statement for people who already are using sensor templates in their setup. My apologies again for missing this!