GithubHelp home page GithubHelp logo

nielsfaber / scheduler-card Goto Github PK

View Code? Open in Web Editor NEW
815.0 815.0 106.0 5.55 MB

HA Lovelace card for control of scheduler entities

License: GNU General Public License v3.0

JavaScript 0.76% TypeScript 99.24%
assistant automation card custom-card home home-assistant homeassistant lovelace schedule scheduler sunrise sunset week weekly

scheduler-card's People

Contributors

0xflotus avatar acseven avatar aledan862 avatar alexkash500 avatar alfonsolsl avatar anarro avatar chuckwaree avatar clau-bucur avatar claudegel avatar cristianlivella avatar devil8ball avatar gatisr avatar giggo avatar giladshoham avatar jsteunou avatar ktibow avatar leandroissa avatar miqmago avatar misa1515 avatar misiu avatar nepozs avatar nielsfaber avatar pdcastro avatar pepe59 avatar philippe12 avatar repsionu avatar sliann avatar tarasifua avatar tonyroberts avatar viper5000 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  avatar  avatar  avatar  avatar

scheduler-card's Issues

The translation does not work

Hello, sorry for my English, I am French.
I installed your programmer, everything works for me except it's in English.
I don't understand why French is not displayed.
My HA interface is in French. Maybe I have something wrongly installed?
Thanks for your help

Thank you for your work

Sacha

scheduler-card not available up after v1.4

Hi, after I upgraded to v1.4.0 the card is not available on HA anymore. I tried to remove and reinsert the card but the card is not available on "insert cards".
Find attached some screen shots

Best
Carlos
Screen Shot 2020-09-22 at 17 07 39
Screen Shot 2020-09-22 at 17 08 16

How can saparate a scheduler task in differents scheduler-car?

Hello again!

How can I show different tasks on different scheduler-cards?

Is it possible to add different programming cards in the same lovelace menu but with different tasks ?, and / or add different programming cards with different programming tasks, different panels?

Example: I have two children and I would like to show the different schedules in each panel.

Captura de pantalla 2020-09-15 a las 22 35 50

Custom card is not showing

Keep running into the following error in the chrome dev console with a fresh/new install of your custom integration and card.
Tried installing through HACS, this puts the file in the HACS rootfolder instead of its own 'scheduler-card' folder. Then tried cloning the git folder into the /local/ folder and setting it up according to your github page. Still no luck, the card will never show up and keeps throwing the error below in the chrome dev console.

Version 3.109.0 
entitylist.js:12 Uncaught TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at Entitylist.Parselist (entitylist.js:12)
    at HTMLElement.set hass [as hass] (scheduler-card.js?v=0:32)
    at HTMLElement.value (chunk.c136a66895309b59c3fe.js:23707)
    at HTMLElement.value (chunk.c136a66895309b59c3fe.js:24142)
    at HTMLElement.t.addEventListener.once (chunk.c136a66895309b59c3fe.js:23707)
    at n (app.664a8247.js:1)
    at chunk.c136a66895309b59c3fe.js:13138

This is my lovelace yaml btw, its a copy of your example, but with my working entity_id:

type: 'custom:scheduler-card'
entities:
  light.tv_meubel_2:
    name: "TV Meubel"
    icon: ceiling-light
    actions: 
      - service: turn_on
        service_data:
          brightness: 100
        name: "Turn on at 40%"
        icon: lightbulb-on-outline
      - service: turn_off
        icon: lightbulb-off-outline 

Can't set Title

Hi. First of all thanks for your great job on this card.

I am trying to set a title for the card. But the card still displays "Scheduler"
Find bellow my yaml file:

standardConfiguration: false
title: irrigacao
domains:
switch:
actions:
- service: turn_on
- service: turn_off
include:
- switch.irrigacao_lateral
- switch.irrigacao_churrasqueira
- switch.irrigacao_oficina
light:
actions:
- service: turn_on
- service: turn_off
entities:
switch.irrigacao_lateral:
name: Lateral
type: 'custom:scheduler-card'

Better time selection

First of all, it'd be nice if you could choose sunrise or sunset, without having to manually find sunrise/sunset and checking "automatically adjust time to sunrise/sunset".
Next, it'd be nice if you could configure to 5 minutes, instead of just 10 minute accuracy. Also the ability to click on the time to adjust it to be more accurate.

Sort card by time

On a card it would be interesting to be able to sort by time and/or entity... Or to present the card in the form of a timeline...

Feature Request: run action only if someone (or no one) is at home

It would be awesome to have the possibility to let an automation run if no one is at home, or if someone is at home, like Apple Home App let us do.

I have an automation in Apple Home App that basically is “If no one is at home at 19:00, then turn on my garden light”.

Option should be:
. Run if no one is at home
. Run if someone is at home

Synchronizing state between card and schedule entity

When I run the switch.turn_off service on one of the switch.schedule_--- entities it seems that it is still shown as on according to the card. Is there a way to have the card reflect that the schedule is off? The state of the schedule goes from "waiting" to "off" as expected.

Eagerly following your progress on this scheduler. Great work so far!

Add topics

Recommended topics:
hacs
card
scheduler
custom-card
home-assistant
homeassistant
javascript

Titles for 2 schedule cards not refreshing

I have defined 2 schedule cards in HA. One controlling schedules for some window vents, the other for defining activities in the Garden. The both have defined titles and are show on different pages in HA. When I move from one page to the other the title of the schedule card is not refreshing. I.e. when I am on the Garden page and move to the the vent page the schedule card displays "Garden". Not sure if this is a card issue or a Chrome issue. If I press CTRL-F5 after moving pages it forces a refresh of the name of the schedule card.

Feature Request: Random option

This Add-On will be great when you can add random option between 2 times. This is very handy to create a holiday scene

Random light on between 19:00 and 19:30 and random off between 23:00 and 23:59
Then you can create multiple lights that goes on and off when you're on holiday.

Maybe even a Random option between 2 times and to turn it on for 2 min and turn of itself but how many times turn on and off between the 2 times. (For example kitchen to get something and you walk back to living room the kitchen light goes off again

Feature Request: Sun Elevation

I like your scheduler card, am looking to possibly migrate my simpler automations (those without conditions) but I realize one of my outdoor lights is scheduled based on sun.elevation (less than -4 degrees, eg "dusk")

Is it possible to add this type of time variable (I know there is already "sunset" but that is quite too early to put on the lights)

Thanks!

Set a friendly name of a scheduler task to enable/disable

And add the specific name of a scheduler task.

Example:

I have created a schedule and I like to activate / deactivate with a certain automation or condition e.g. It's raining today? Well, I don't activate the programming, etc.

image

it's correctly?

Helpers as controllable entities

Hi, Great work there!
I was wondering if that would be possible to add helpers (i.e. input_boolean, input_select) as controllable entities by scheduler?

Unable to connect to Home Assistant

My Home Assistant UI has been shutting down with a simple Home Assistant logo and the message "Unable to connect to Home Assistant". I connect use it for a while, navigate around and eventually I try to open Home Assistant in a new tab, or click the browser refresh button and I am greeted with an impassible error message. I found that clearing my browser cache resolved it so I could login again, but it would come back. It was happening enough that I even installed a Firefox addon button "Clear private data now!" to make the recovery process quicker.

With my work-around... working, I hadn't done enough troubleshooting yet to track it down. Then I saw a user on Facebook posted about this issue. They later reported: "So ... I restored a previous backup, went back to 0.114 and still had the issue. Once I removed a recently added integration 'scheduler card' it haven't encountered the issue since (testing for the past 40-50mins)"

The problem I don't know how long it takes for this to occur, and it could take a while for it to manifest. I can tell you that it started occurring for me shortly before the Home Assistant 0.115 release. Though I can't be sure I believe it first occurred sometime in the last week. This was not occurring with your card before one of your recent updates.

Other info: I'm running Firefox on Windows 10.

Screenshot 2020-09-22 074944

Facebook Home Assistant Group: link to discussion

Feature Request: "Run once" or "This Day"

Great Card. Works and looks perfect. Thanks a lot!!

I would like to the ability to run a event just once.

For example:

I like to turn off my 3D printers after printing at 11:00am. But only one time. Not every day or every Monday.

I hope this is possible and its a cardtype compatible function.

Thanks a lot :-)

Feature request: Entity Multi-Select

It would be useful to be able to select multiple entities when creating a schedule. For example to click on the LIGHTS group, and then select 3 specific light entities before selecting the ACTION and clicking NEXT

Feature request: add media players

Add media players with the most basic functions:

  • turn on
  • turn off
  • select source (this has to get the list of sources from the selected media player)
  • play
  • stop
  • set volume
  • mute / unmute
  • next / prev

Action with Condition

Hi,

is it possible to have a condition for an action ? Like if the Thermostat is below 15 degrees at 6am turn on the heater?

Don't update de schedule after edit (chage the minut)

Hi,

I have a schedule, after this runs I want to edit and change a time (10 minutes later to try ...) but the switch doesn't change a schedule.

image

image

the original time to be executed was at 2020-09-16T21:20:00+02:00

I tried uninstalling and reinstalling it (with the latest versions) but the problem persists, it's correct?

Thank you,

Feature Request: Include Vacuums

A great addition to the standard configuration would be to include vacuums as an option by default. I realize that you can add vacuums fairly easily through yaml, but I think including it by default would be great.

Breaking checkboxes

The new release causes this problem and breaks stuff like the UI card editor add dialog:
image

Feature request: add scripts

Please add a group to start scripts using the scheduler. To be able to use your suggestion.
Please provide examples on how to provide variables from the scheduler to the script.

feature request: holiday days binary sensor integration

It will be great to have a feature to create a holiday day.
I think of something like this:
I have my own holiday binary sensor (based on many local integrations with some templates)
I'll configure the scheduler to look at this binary sensor.
then I can schedule stuff based on check whether it's a holiday or not.
Will add a kind of checkbox to apply something only on holiday or only on not holiday.

Feature Request: Incorporate Workday Binary Sensor

Hi,

I currently use a bunch of input_datetime's in my heating controls as shown below and was wondering if I could use your new schedular component to simplify this.

image

I currently make use of HA's Workday Binary Sensor (essentially to turn the heating on later at weekends and holidays) and was wondering whether you might consider incorporating an option to have the workday entity being on or off as a criteria rather than manually selecting days of the week.

https://www.home-assistant.io/integrations/workday/

Cheers!

After restart HA automation is turned on

Step to reproduce:

  1. Set schedule and turn it off
  2. Turn off host: Supervisor -> System -> Host system SHUTDOWN
  3. Run system again
  4. After system run the schedule is turned on

Maybe it is not a bug and I missed something?

Please add sorting

The items seem to be randomly arranged in the card:
image
It would be great if they would be sorted A-Z instead.

Example Card Config:
domains: light: actions: - service: turn_on - service: turn_off type: 'custom:scheduler-card'

Reorder items?

It'd be nice if you could change the order of items, instead of having to delete all and create them in order again.

Automations turned on on restart

When restarting home assistant, all Scheduler automations are switched on, even when disabled. I think disabled should stay disabled?

Custom element doesn't exist: scheduler-card.

Hi,
This card looks just awesome!

I've installed the scheduler-component successfully (added the integration as well)
Now I've downloaded the card js file and put it like any other card I downloaded.
but once I tried to add the card to the UI I got Custom element doesn't exist: scheduler-card.
any idea?

thanks!

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.