KaufHA / PLF10

Files for the PLF10 Power Monitoring Smart Plug.
26 stars 15 forks source link

Let user .yaml specify timezone #16

Open sowbug opened 1 year ago

sowbug commented 1 year ago

There's something wrong with my Home Assistant installation, and it refuses to admit that I'm not in timezone "Etc/UTC." So I've had to go through individual esphome device configurations and add my correct timezone to the time: stanza in the configuration. The problem is that kauf-plug.yaml doesn't appear to make it easy to override time:, or better yet provide a timezone in substitutions that it incorporates into its own time: statements.

I know I can always grab the whole kauf-plug.yaml file and build that myself, but it's really nice to have a relatively short customized .yaml for my own devices that integrates with the unmodified Kauf code.

Please allow users to easily specify a timezone.

sowbug commented 1 year ago

https://github.com/esphome/issues/issues/2868 for the underlying issue (which isn't a Kauf issue).

bkaufx commented 1 year ago

Did you find a solution or do you need me to make a change to the yaml to help you out?

sowbug commented 1 year ago

Thanks -- I did figure it out and described the solution in https://github.com/esphome/issues/issues/4157. If you think the request is generally useful for others, then it's at your discretion to leave this issue open. I can see how there could be a proliferation of one-off substitutions that would eventually defeat the purpose of all the structure you've put into kauf-plug.yaml, so I also understand why you might prefer to close this issue without implementing it. Either way, thanks.