Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Schedule (optionally) ignore daylight savings #783

Closed
BuildTheRobots opened this issue Apr 11, 2018 · 5 comments
Closed

Request: Schedule (optionally) ignore daylight savings #783

BuildTheRobots opened this issue Apr 11, 2018 · 5 comments

Comments

@BuildTheRobots
Copy link
Contributor

Request:
Have an option for each schedule set to ignore daylight savings.

Reason:
As I have electric storage heaters in my house (no gas), I get two rate electric. More expensive during the day and cheaper at night to charge the heaters up (called Economy 7 or Economy 10 in the UK).
I'm currently using the sonoff POW modules to switch the heaters on when it's cheap.
It turns out that even though our daylight savings puts the clocks forward an hour for half the year, the electric company ignores it, so the cheap electric stays tied to UTC-0 rather than being relative. This means in winter it's midnight->7am but in summer it's actually 1am -> 8am.

It would be nice to be able to set a schedule that ignores daylight savings. Without that option I either have to leave a safety buffer of an hour at the start and end (loosing two hours a night) or remember to change the schedule when the clocks change (and who manually resets clocks these days?)

Greatest of thanks :)

@BuildTheRobots BuildTheRobots changed the title Request: Schedule ignore daylight savings Request: Schedule (optionally) ignore daylight savings Apr 11, 2018
@xoseperez
Copy link
Owner

You can also disable daylight savings on the device 😄

@BuildTheRobots
Copy link
Contributor Author

BuildTheRobots commented Apr 11, 2018

I can indeed - the reason I was hoping to do it on the schedule was because I see it as more consistent, especially on multi-switch devices.

The use-case I can see is being able to make sure the heaters switch off all year round when the electric gets expensive in the morning (7am UTC-0), but still allow me to have a light that came on every night when I got back from work at 7pm (which is always 7pm LOCAL).

Edited to add: The way is see this working in the UI is a second slider (like "Enabled") which selects between local time and UTC-0. It's a bit of an edgecase, but has the potential to apply to anyone living in a country with daylight saving.

@xoseperez
Copy link
Owner

I've just committed the changes to allow defining a scheduled based on UTC time. It's in the dev branch, let me know if it works for you.

@BuildTheRobots
Copy link
Contributor Author

Installed on a POW and seems to be working. Will do some proper testing with multiple timezones tomorrow. Thank you :)

@xoseperez
Copy link
Owner

Staged for release. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants