Open mgroeninger opened 2 years ago
Thanks, I'll take a look. It may relate to a change I was working on ages ago to be able to override different types of readings to be metric / imperial compared to the existing preference setting value. I got very close to finishing it but was stumbling a little when it came to handling the templates for dashboard tiles.
I'll see what I can sort out.
@mgroeninger,
I might take my time with this one if that's ok. If you have something that works for you, then I might use that and the fact you are only the second person to ask for this to my advantage. Like I mentioned in my last comment, I am conscious of how this affects people's use of the existing templates, as they are defined (typically) as either metric or imperial. So mixing readings with different scales just needs a bit of work. I'm sure there will be a way to do it, I just need to spend some time to work it through. I had also taken this request further than just pressure and looked at other things like speed, rain and temperature measurements, etc, allowing each of those types of measurements to be adjusted from the single setting for the gateway.
This allows pressure to select hPa even when using Imperial units. It's quick and dirty but it seems to work ok. Please let me know if there is anything you'd do differently. Thanks!