GithubHelp home page GithubHelp logo

arthurdent75 / simplescheduler Goto Github PK

View Code? Open in Web Editor NEW
168.0 15.0 33.0 2.11 MB

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

Dockerfile 0.42% CSS 10.58% Shell 0.75% Python 51.37% HTML 36.88%

simplescheduler's People

Contributors

arthurdent75 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simplescheduler's Issues

Not able to add any schedules

I've just installed the scheduler and it appears to install into HA ok, I can see it has created some files in the Samba share etc, I go into the web ui for the scheduler and it shows running along the bottom but nothing happens when I click the + button at all. I have tried a restart on HA as well as clearing browser cache and it has not seem to have resolved either.
Any ideas what I have potentially done incorrect?

Don´t turn device off

Hello. First I want to say your scheduler is awesome. Good work. I would like to use previously implemented function to not turn ON (heating) device with temperature set during ON procedure. Could it be possible also not to set OFF device (not to call climate.turn_off) on adjusted time but make temperature change if there will be something like "19:56>T27" in "OFF" field? Thanks.

[request] Add cover entities

Hi,
it would be cool if you could add scheduling for Cover entities, with ability to set a % for opening (ON) and closing (OFF).

Thanks!

New features...

Hello !
Finally a scheduller ...!
Do you plan to continue developing it and adding functions? For example workday to manage holidays? Or the possibility of activating or deactivating ranges from HA? Or the possibility of using in Climate setpoints of different temperatures depending on the day and time?

These are just a few ideas but it would be great if this sort of thing were possible!

Thank you :-)

Multiple Devices

I'm trying to add multiple devices to a single rule, but the plus button doesn't seem to do anything.

Cannot control the same entity with several config

Controlling the same entity several times does not seem to work: only the last config is actually applied.
Ex for the same input_boolean:
1: On at 8:00, off at 9:00
2: On at 15:00, off at 15:00

It looks like only 2: is applied.

Addon to heavy

When supervisor make an snapshot and i have only one programmation inside the snapshot does 115 mo !

How it is possible ? Could you explain me ?

New Feature

Hi there, I like the idea of this Scheduler, but it would be nice to add in Date, months an years etc. so it acts like a calendar, also when you select say a light or wled object, you sould be able to select effect that you want to turn the light onto etc.

Multiple On and Off entries per device?

Hi
I love how simple the program is and is exactly what I've been looking for. Good work.
Would it be possible to add multiple on and off times per entry? example:
Turn on: 09:00 / 12:00 / 15:00 / 18:00
Turn off: 11:00 / 14:00 / 17:00 / 20:30

Maybe it is possible but I don't know the delimiter?

Enable or disable schedules with an automation

Hi there, love this add-on, helps get the kids up on weekdays!
We have an automation that turns everything off with one click when we go on holiday. It would be great to be able to also disable the schedules from within that automation. Can it be done? Many thanks

feature

hi, great work. really love the idea...

two questions:
a) does eg "sunset" work like in standard automations? addional an offset would be great!
b) having a defined ON time (eg 60 mins) would be nice, instead of an defined OFF time. eg: switch light on at "sundown-1" and leave the light on for 60 mins
c) adding some conditions would also be great, eg very simple a list of available input_booleans would be enough, because you can set these booleans in other scripts/automations.

great work!

are there any further improvements planned?

sunset - sunrise offset

Hello,
I need to turn on some lights 30 minutes after sunset and turn them off 30 minutes before sunrise, but I haven't found a way to do it, is it possible to implement this function?

Bug (IMHO)

It seems that the scheduler doesn't survive a restart to the server even with the option start on boot activated.

in order to reactivate the scheduler after a restart, I have to use the option "rebuild" restart wont be enough.

Just set the temperature

Now:
*You can set the temperature of a climate. Write 16:30>T22.5 turn on the climate and set the temperature to 22.5°

This change on my TVR "current_heating_setpoint: 22.5". Is ok. But at the same time it changes the state on heating.

This causes the TVR to open the valve to 100% and not turn off the valve even when the temperature is reached.

my suggestion is to add to the settings the ability to enter for example 16:30> OT22.5 (only temperature 22.5) which would set only "current_heating_setpoint: 22.5"

Would this be possible? I will be happy to give you the beer to work.

Jrousekcz from czech (beer country) :)

Time and Time Zone options.

Hi,

I just realized that the times that I have setup are off by 2 hours.
It seems, because I have the time zone set in HA to Europe/Berlin, there two hours added to the scheduled times.

In the docker logs there are also the current time + 2h shown.
Like right now:
172.30.32.2 - - [11/Jun/2020:20:32:37 +0200] "GET / HTTP/1.1" 200 5403 "http://hass.iot:8123/lovelace/default_view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0"

The HA's time is fine and is also shown correctly.

Is there a configuration option for the time zone in the addon?

Thank you.

Gives some error after upgrade

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

Feature requests: triggers and overrides

Hi, I don't know how much time you have to program this. Already is a very cool addon. I propose you new feature which will be definetely cute additions, in case you have time (I am not able to help though for lack of skills).

Triggers: light turn of upon a sensor trigger, like this you will make thousands of people happy, basically one of the most common automation: turn on a light upon a PIR sensor trigger

Overrides: light turn ON (or OFF) only if a specific entity is ON (OFF). For example turn ON light on motion only if switch.TV is OFF

:

Multiple scenarios

Thanks for this add-on.
I would like to create multiple scenarios like to switch on/off my heater for 15 minutes each hour but depend on the season.
So, in winter I need more schedulers than spring.

Is it possible to do that with your add-on ?

Thanks

Input booleans

Please add support for input_boolean.
For myself this would be the most useful thing to have in simple scheduler, and it shouldn't add any complexity.

HASSIO web ui bootstrap error

I got this error each times i open the web-ui.
I already tryed to reinstall and rebuild the package wo success.

This error makes the entire component not working.

VM652 bootstrap.min.js:6 Uncaught TypeError: Cannot read property 'fn' of undefined
at VM345 bootstrap.min.js:6
at VM345 bootstrap.min.js:6
at VM345 bootstrap.min.js:6
at VM345 bootstrap.min.js:6

Tested Browsers: Google Chrome - Ms Edge

Fatal error: Unknown: Failed opening required '/var/www/html/index.php' (include_path='.:/usr/local/lib/php') in Unknown on line 0

On an installation of hass.io on a Synology Nas, I get the following error:

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error: Unknown: Failed opening required '/var/www/html/index.php' (include_path='.:/usr/local/lib/php') in Unknown on line 0

The log says:

[Sat Aug 01 21:13:30.178520 2020] [mpm_prefork:notice] [pid 12] AH00163: Apache/2.4.38 (Debian) PHP/7.3.20 configured -- resuming normal operations [Sat Aug 01 21:13:30.179544 2020] [core:notice] [pid 12] AH00094: Command line: 'apache2 -D FOREGROUND' 172.30.32.2 - - [01/Aug/2020:21:13:30 +0200] "GET / HTTP/1.1" 200 463 "http://192.168.2.221:8123/hassio/ingress/00185a40_simplescheduler" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0"

Other addons work flawless.
Any idea why its doesn´t work?

error

after update Home Assitant the error appeared Warning: file_get_contents(/data/options.json): failed to open stream: Permission denied in /var/www/html/lib.php on line 11

how can i do to fix it?

Hours need to have 2 digits

I scheduled an event at 9:00, however the lights didn't turn on. When I scheduled the event at 09:00 the lights turned on.

couple requests for the program

hi so i not sure how to really edit codes to make it work for me
but wanted to see

1.. your scheduler has teh green toggles to enable disable.. anyway to make them clickable.. instead of only when u click the Edit and then enable the check box?

2.. i have a pump i use an arduino and i use momentarty switch to on and off... id like option for your program to have a Start script and end script
so say 8:00pm runs toggle.script (turns it on) and at 8:05 toggle.script (turns it off) instead of needing to lines of code.

  1. before home assistant i use Crontabs and i made a simpler thing for me .. that every 2 hours it would run a script and every 2 hours 15 min would run script again to shut off.. or i had one for ever 4 hours.. and i just rem out the 2 lines
    is there a way you can also incorporate Crontab so i could have 1 line of scheduler that will run every 4 hours or ever 2 hours.. and then the 2nd line would be my shut off so ever 4 hrs 15 min or ever 2 hours 15 min.. if you need to see my crontab on what i mean i can send it later

so far i struggling to learn Home assistant and lot of times bashing head off wall lol.. no real good step by step tutorials

but i figured id ask

Version 0.21 doesn't work under Nabu Casa

Since I have installed the latest versions (ver 0.20, 0.20.01 and 0.21) I have the same issue: if I connect to my HA instance via Nabu Casa (HA ver core-2021.4.6, supervisor-2021.04.0) in the Simple Scheduler UI none of the buttons work and web UI looks strange (see attached screenshot)

2021-04-24 11_18_32-Action center

If I access the HA locally the Simple Scheduler works fine and the buttons also execute their task, but the switching on and off won't execute at the set times.

What is causing this?

Comma separated time list

Just an observation. Because I did it out of habit, I am sure others might and have to puzzle out why only the last time in a list works. I was doing comma space habitually and you might want to honor comma with space as a separator in any update.

Does not work

I have installed the add-on. When I create a test shedule and wait for the time set - nothing happens. While the ordinary way of setting the automation works (if time then activate the sceene).

Feature request: support generic values

Hi
how about not just supporting switches, lights etc it would be great to have a component that can output multiple values by time.
e.g. 8.00-9.00 -> 1 (heating program 1)
9.00-10.00 -> 2 (heating proogram 2)
...

Can't add to HACS

Every time I try to add it in HACS there is an Error: Repostitory structure for master is not compliant.
I reinstalled HACS completly but no success.

Best Regards

Hide entities

Hi, I'm new here. I really appreciate your work.

I want to ask you if it is possible to hide some entities.
I tried to set, in the addon configuration panel, a true/false parameter for the entities I want to control/hide, but nothing seems changing.

The purpose of this functionality is because I want my family components able to control only certain entities and not all of them.

Thanks.

Web UI error

Hello,

I get the following error when trying to open the web ui:

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Fatal error: Unknown: Failed opening required '/var/www/html/index.php' (include_path='.:/usr/local/lib/php') in Unknown on line 0

Kind regards,
Nikos

Warning

currently running version 0.108.6

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

Errors when device/entity names include single quotes

If an device/entity name includes a single quote there are syntax errors in the index.php script and as a result none of the buttons work.

I'm not sure if it's device or entity names that's causing the problem, but I can confirm that renaming my devices and entities did workaround/fix the problem for me. Version 0.30.05, tested in both chrome & firefox with HA 2021.6.6.

Error after install

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Fatal error: Unknown: Failed opening required '/var/www/html/index.php' (include_path='.:/usr/local/lib/php') in Unknown on line 0

I coludnt run it

Arthurdent, thanks so much for this pure, simple and useful code. But whe i test it i cant take any action. I had Sshots. I want to open and close some switch when i need in time.
IMG-0767
IMG-0766

Multiple on and off times per entry?

Hi
I love how simple the app is and is exactly what I've been looking for. Good work.
Would it be possible to add multiple on and off times per entry? example:
Turn on: 09:00 / 12:00 / 15:00 / 18:00
Turn off: 11:00 / 14:00 / 17:00 / 20:30

Maybe it is possible but I don't know the delimiter?

Thanks for all your hard work

Sunrise / Sunset +- time

Hi! - Love this project - is there a way (I'm still working my way around how plugins / add-ons work in home-assistant) to perform a schedule for (sunrise + 1hr) or (sunset - 2hrs)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.