Skip to content

An Home Assistant AddOn to schedule entities on/off on weekly base

Notifications You must be signed in to change notification settings

jiangyilin123/SimpleScheduler

 
 

Repository files navigation

SimpleScheduler

A Home Assistant AddOn to schedule switches and lights on a weekly base in a visual way without coding. You can keep all the schedules in one place and add/change in a few clicks, even in your mobile app.

SimpleScheduler

Installation

You can add the URL of this page in your "add-on store" as a new repository. (Supervisor > Add-on store > three dots in top right corner > Repository) Click refresh and you will find the add-on "Simple Scheduler" listed.

How to use it

The add-on is very easy and intuitive (or, at least, that's what I hope)
Once installed, open the GUI, click on the round plus button in the bottom right and add your first schedule.
Choose one or more entity from the dropdown, fill the ON time (in 24 hours format with leading zero, as suggested) and select the weekdays. Do the same for the OFF time and click "save". That's it!

If you need more advanced feature then:

  • You can set multiple time in the same scheduler: just write them in the field separated by spaces.
  • You can use the words sunrise and sunset and also add an offset (in minutes) to it if you need (e.g: sunrise+30 or sunset-60 )
  • You can set the brightness of a light. Write 16:30>B30 turn on the light at 30%.
  • You can set the temperature of a climate. Write 16:30>T22.5 turn on the climate and set the temperature to 22.5°
  • It's not mandatory to add both ON and OFF time. You can leave one of them empty if you don't need it. For example, you want to turn off a light every day at 22:00, but you don't need to turn it on.
  • You can also choose to disable a schedule: the schedule will stay there, but it will not be executed until you will enable it back
  • You can drag the rows to sort them, so you can keep them organized as you like!

Look at the picture above to see all this things in actions (and combined!).

Translation

The default text language is English. They are very few words. If you want to translate them, you just need to take a look at the configuration section of the addon. Rewrite the words you would like to have in your language and restart the addon. For the weekdays, as you can easily understand, only the first two chars are used.

Two words about the stored data

Every schedule (or row, if you prefer) is a JSON file stored in the [share/simplescheduler] folder under the SAMBA share. This gives the chance to the data to "survive" to an addon upgrade or reinstallation. You can easily backup and restore them in case of failure. In the same way, you can (accidentally?) delete them. So be aware of that.

Last but not least

If you want to convince me to stay up at night to work on this, just buy me a beer 🍺 You may say that regular people need coffee to do that. Well, I'm not a regular person.

- - - - - F A Q - - - - - F A Q - - - - - F A Q - - - - - F A Q - - - - - F A Q - - - - - F A Q - - - - -

I set a timer but it switchs on/off at a wrong time
Be sure to set the correct timezone in Settings->General
You can read the TimeZone currently used by the addon in the bottom gray row

I set a timer but it doesn't switch on/off
The time MUST be set in HH:MM format
Be sure to input time with leading zeros (e.g: 08:30)
Seconds are not allowed
Also check the previous point (timezone). Maybe it works but at the wrong time!

After update the addon doesn't seem to work
It seems that sometimes the update process fails.
Try to uninstall the addon and install it again.

About

An Home Assistant AddOn to schedule entities on/off on weekly base

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 98.3%
  • Other 1.7%