Hi Alessandro, your addon is very nice and a very useful tool for my automations, thanks a lot.
I have two questions/suggestions for this great addon :
The weeks days are shown with two first letters, but there are languages that all the week days start with the same two letters, could be any option to choose the number of letters to show ?
If one day I don’t need that one scheduled event runs because I will not be at home, there is any way to disable this event without disable all the schedule.
Using more than two letters will break all the appearance. I’ve done a lot of tests in the past and it was hard to fit two letters. I was also tempted to use just the first one
You can easily disable one scheduler by editing it and removing the check from “enabled”
You can also add a switch in the frontend by enabling MQTT feature.
Hi Allesandro,
I am on :
Home Assistant 2023.10.5
Supervisor 2023.10.1
Frontend 20231005.0 - latest
When I try to install the Simple Scheduler, I get the following error message:
“Failed to install add-on
The command ‘/bin/bash -o pipefail -c apt-get update -y && apt upgrade -y’ returned a non-zero code: 100”
Hi Alessandro,
I will suggest you very stupid but useful automation to enable/disable schedule based on holidays calendar
# Se oggi è un giorno di festa disattivo le automazioni
- id: D_8
alias: "AUTOMAZIONE - Schedulazioni: Disattivo se giorno di festa"
trigger:
- platform: time
at: "00:01"
condition:
- condition: numeric_state
entity_id: calendar.calendario_feste
below: 1
action:
- alias: "disattivo schedulatore"
service: switch.turn_off
entity_id:
- switch.simplescheduler_apri_cancelli_al_mattino
# Alle 23:59 di notte, se è un giorno di festa riattivo le automazioni
- id: D_9
alias: "AUTOMAZIONE - Schedulazioni: Riattivo a fine giorno di festa"
trigger:
- platform: time
at: "23:59"
condition:
- condition: numeric_state
entity_id: calendar.calendario_feste
below: 1
action:
- alias: "disattivo schedulatore"
service: switch.turn_on
entity_id:
- switch.simplescheduler_apri_cancelli_al_mattino
[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] 00-banner.sh: executing…
Add-on: Simple Scheduler
Simple timer on weekly base
Add-on version: 2.11
You are running the latest version of this add-on.
System: Home Assistant OS 11.1 (amd64 / generic-x86-64)
Home Assistant Core: 2023.11.3
Home Assistant Supervisor: 2023.11.3
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
From the log, everything seems fine. The addon is starting.
Try to take a look in Settings > System > Log
and select “SimpleScheduler” in the top right corner
(you will see “Home Assistant Core” which is the default selection for logs)
BETA TESTER NEEDED!!!
I need help to test a new feature in the next release.
Conditions
For each scheduler, you can add a condition that will be checked at the time of the execution.
If the condition is ‘true’ the action will be performed and (obviously) it won’t be executed if the condition is ‘false’.
The condition is a template expression that you can add in the “template” field.
If the field is empty, no check will be performed and the action will always be executed.
The template expression must return a boolean (‘True’ or ‘False’).
So be sure to “convert” switches, lights, and any other entity states to boolean. A few examples:
If the template returns ‘on’, ‘open’, ‘home’, ‘armed’, ‘1’ and so on, it will all be treated as ‘False’.
If the template expression has syntax errors it will be considered ‘false’, and it will be reported in the addon log.
Use the template render utility in Developer Tools to test the condition before putting it into the scheduler.
If you are interested you have to add the beta repository with this URL:
You should remove the actual version and install the version from the beta repository.
All schedulers will not be deleted, but run a backup anyway just for the sake of prudence.
One last note… Beta testing is for advanced and confident users.
You should help me and not the opposite
I might be inclined to test more beta features - but first I have to get it up and running
My installation: HA 2023.12.3 on Raspi , Simple Scheduler 2.2.1
continues in the addon log:
[2023-12-20 12:54:00] ERROR: Unable to obtain timezone from Home Assistant
[2023-12-20 12:55:00] ERROR: Unable to obtain entities names from Home Assistant
The input line for the entity has no function (no keyboard input, no copy&paste)
Any ideas for troubleshooting or even solving the problem?
Thanks in advance.
Those errors means that the addon is unable to communicate with home assistant, which is basically impossible in supervised installation. Are you using a different kind of setup? BTW, you can try the beta from scratch, if you need.
I took the plunge: uninstalled simplescheduler - installed simplescheduler-BETA; it seems to work - at least I can see the local sunset and sunrise times in the status bar below … but: the LOG still contains the historical error messages from the previous simplescheduler installation.
And NO, i’m using a standard setup: HA-installation package had been rolled out on native RaspberryPi
That’s normal. Uninstall do not remove data files, including logs.
You can delete the log file to flush the old logs. Be sure to stop the addon first.
It will be created again from the addon at the first restart