Simple Scheduler Addon

You need to be careful with your wishes because if you simply call homeassistant.turn_on/turn_off service it might end up like this :wink:

tl;dr for automations it should be automation.trigger service rather than homeassistant.turn_on/off

Thank you for your advice.
I needed the scheduling right now, so I created it by myself.
It tooks me a week of work and it gave me the chance to understand a lot of things under the hood about HA, starting from docker.
When the scheduler integration will be ready, this addon will become useless.
In the meanwhile, I hope it helps the community!

Thanks again!

4 Likes

Just a few things which come in mind when I tested.

You are right, the name says “simple”. So if you want to keep it simple, its already perfect.

More entities or conditions got the potential to make it a “difficult Scheduler”. But if you want to expand the capabilities of your addon, just put my notes to a future feature list and think about it :slight_smile:
Or you can make a second addon. A simple scheduler and a universal scheduler.

2 Likes

I really like this, and it’s written in php so bonus. Would you be willing to accept pr’s?

Hi @Sabuto
I’m kinda new to all this git world. (It took me 5 minutes to understand your question :rofl:)
I have to learn it because of this project.
I’m not a corporate programmer (maybe I’m not a programmer at all), so I’m not familiar with team working.
Please, don’t get me wrong, I’m still not prepared to this.

What would be your idea of improvement?

So looking through the code you use jquery but only on the tooltip. I would probably change out the rest to use jquery (just for readability). I would also be happy to implement some of the ideas other have had with the different things like climate etc

Also just out of interest why do you pull the python image?

JQuery is there not just for tooltip. I planned to use Datatable to sort columns and to use rounded toggle buttons instead of checkboxes. Being this just esthetics, I postponed.

The python image is a mistake due to laziness :rofl:. The first version of the scheduler engine was in python and I didn’t want to rewrite it. But I was having trouble running it in docker along with PHP. So I convert it to PHP. I forgot to remove python image from Dockerfile. Thank you for the tip.

Not for my use case. I have automations that control my house climate. I want them enabled or disabled for certain periods. They may then be triggered by temperature during those periods.

3 Likes

Fair enough. Just wanted to point out the difference as sometimes it does matter.
Your heating control is HUGE…

2 Likes

Np lol, also whenever you do getelementby[name,I’d etc] you could use jquery

1 Like

+1 for this. That would make it far more powerful.

That said, it is awesome already

1 Like

The Automation bit is normally hidden in a folded row.

Having said that… all the time entities would disappear with access to automations by this addon.

Version 0.08 released!
Now the addon supports this components:

  • light
  • switch
  • script
  • camera
  • climate
  • automation
  • media_player
  • scene (experimental)

You can disable some of those components from configuration if you don’t need them and you prefer to reduce the length of the dropdown list. Just set the component you don’t need to to false.
Probably you will have to rewrite the translations in the configuration… sorry about that… I thought that items should be re-arranged with the new parameters.

5 Likes

fantastic, great addon, will try now.

Ok, installed so far so good.

A couple of requests:
Maybe split the selection in light, switch, and so on, for those who have a long list of devices (this is minor)
Put the sunrise and sunset options, instead of the time

1 Like

for non sophisticated people, like me, this addon is way way way simpler then Shedy, which I try toi install but was far from easy to understand (for me at least)

3 Likes

Hi, climate should be more of temperature rather then ON-OFF. Nevertheless I started to bring lots of automation to your scheduler. Big thanks

2 Likes

where is it? I couldn’t find anything (0.08) just down the add-on page.

One improvement request: I really like the way input_datetime handles input (hours and minutes separately) and I believe it would be great to implement.

p.s added a new issue on Github :wink:

After reading what is planned for the official addon (scene control only) I don’t think your addon will become useless at all.

1 Like

This was already in my mind. I think that the dropbox is really messy, but the HTML dropbox is limited. I have to replace with a javascript one, maybe with icons and column.

By the way, starting from 0.08 they are sorted by components. Better than nothing… :rofl:

Yes sorting is good, overall is ittle messy, but enough for a start.
In addition to time would be great sunrise and sunset options (with offset)