Simple Scheduler Addon

I hope you mean that the engine uses scenes internally to achieve the result rather than requiring us to only control scene entities. Otherwise we would need to create a scene to turn on a light… I can see the benefit of a scene for complex things (ie: lots of lights, switches etc all being controlled at once) but for something simple we would want direct control of the entity, not via a scene

1 Like

I saw something like “let’s make scenes first-class citizens” from balloob in one of the PRs not long ago.
My bigger worry is the move from trigger automations to device automations but I haven’t looked into it yet.

1 Like

What about vacuum scheduler? Is it possible to add it?

How do you turn it on now?

I fully agree, (though this is major off topic) the device id’s are (at least to me) non recognisable loooonnnng random numbers (though certainly unique and specific id’s as far as HA is concerned.
It is just a move by the devs to democratise HA via Device Automation, and I’ve got a long way to go before I get my head round that. As baloob says the old trigger methods will be maintained for the future, so we’ll have time.

1 Like

@ArthurDent1975, love the name, you must be a Douglas Adams fan

Given you were concerned about the reception of your new addon it has gained rapid popular support from MANY worthies on this forum.
Not only that, but in the 2 days since its release you have expanded it to widen its use and appeal.

I commend your efforts but I do feel you haven’t had much sleep in those 2 days.
Remember, happy wife, happy life.
Please pace yourself so she doesn’t get pissed off with you and so we get the benefits of your skilled labour’s for years to come (I’m just being selfish here ! :rofl: )

Brilliant first outing :beers:

4 Likes

What love to use this but don’t use hass-io. How can this be used by the rest of us? Could this be added to hacs?

Brilliant work!

Xiaomi vacuum card.
I could do a switch that started the automation, but would be cool if it was integrated by default.

Can you share your config? Right now I’m using the following for the heater:

climate:
  - platform: generic_thermostat
    name: Study
    heater: switch.blitzwolf
    target_sensor: sensor.0x00158d0001ab170f_temperature
    min_temp: 5
    max_temp: 25
    ac_mode: false
    target_temp: 17.5
    cold_tolerance: 0.3
    hot_tolerance: 0.3
    min_cycle_duration:
      seconds: 60
    keep_alive:
      minutes: 0
    initial_hvac_mode: "off"
    away_temp: 16
    precision: 0.1

However I need to keep some automations to enable and disable the heater at x hours.
image

Rather than wonder what I mean, I encourage you to read the topic in the Architecture repo (linked above). To help people navigate the long discussion, I’ve created this list of highlights:

In a nutshell, it was decided that scenes were the best choice to represent a ‘unit of work’ for the scheduling engine. In fact, the decision (made in early summer 2019) required improvements to scene management, notably the addition of a service to create scenes.

It’s my understanding that all of the work done so far is on the actual scheduling engine and not the UI to interact with it. The engine schedules scenes, not individual entities. If I had to guess, I’d say the UI will let you select one or more entities and they’ll be transparently assigned to a dynamically created scene (behaving as the “container” I mentioned earlier). However, that’s just my guess; how the UI ultimately handles it is a design conversation yet to take place.

3 Likes

Yes, you’re right. I’m a Douglas Adams fan.
Thank you so much for all the good things you wrote.
Those are the best rewards for all the job done.
I think I reach a good level of satisfaction for most of the users (and me).
So, after the next release, I will slow down on this… but only because I have to complete another custom idea on HA that I can’t find anywhere, and I really need that.

Oh, I almost forgot…

version 0.13 released

  • Added Sunset / Sunrise as time alternative
  • Added date and time in scheduler log
  • General optimization

Ciao!

6 Likes

grat news … waiting your upcoming releases… shure you will make a really fanstatic app… maybe with other people who will help you. Great stuff !!!

Hi, hw to do that? Is possible to add an offset?

Just write “sunset” or “sunrise” instead of time.
Adding offset is not so easy. Maybe in the future.
I don’t need this feature. I just add this because of the many requests :stuck_out_tongue_winking_eye:

I don’t know about programming. If its difficult you perhaps is easy to add other times near sunrise sunset (dawn dusk)

Probem is at sunset its already too dark, it is needed a moffset, probably dawn is ok

one of the best addon, simple, fast, very useful. Thanks again!!

1 Like

First time schedulling and got this error:

**Warning** : file_put_contents(/share/simplescheduler/sun.dat): failed to open stream: Permission denied in **/var/www/html/lib.php** on line **221**

That’s odd. Let me do some more test

@glorifiedg: Had the same issue. Just restart Simple Scheduler or restart HA.

I scheduled it 2 days ago and since then I restarted HA multiple times