Coder Social home page Coder Social logo

Comments (11)

reesion avatar reesion commented on May 12, 2024 1

Ok thanks for confirming.
If would be helpful if the features are available as it reduces the need to write manual scripts and automations.

from scheduler-card.

nielsfaber avatar nielsfaber commented on May 12, 2024

It is not supported currently, no.
It is also not really planned, because it will add quite some extra buttons and fields to the GUI, which might get confusing.
But it could be considered if it helps a lot.

For now, if you want to do something like this, you could create a script/automation that has the condition.
This script/automation can be triggered as a schedule.
You could pass the temperature threshold condition as a variable from the card, so no hard-coded level.

from scheduler-card.

KTibow avatar KTibow commented on May 12, 2024

Personally, I think it's really easy to make an automation with the GUI, the main reason I use this component is because it's a bit faster.
I think that it's better to have no condition format then a limited condition format, because I don't see the point of recreating Home Assistant's advanced condition system when it'll just lead to lots of bugs.
Sure, I'm be being lazy and not seeing the point, but I think that it's pretty easy to maybe just add a quick link at the bottom to create a new script.

But this could be useful in a couple of ways:

  • Only on workdays, trigger schedule.
  • At the same time every day, if it's a workday or weekday, do one thing, else do another thing.

from scheduler-card.

EnryDalo avatar EnryDalo commented on May 12, 2024

Thank you very much for your work, the card is very easy to use and surely the best scheduler available for HA so far.
I think it's a must to include some conditional starting. For example, i would like to progam a climate shedule like the TADO application and would like to include the "at home/away" detection. This is impossible to make without a conditional checking, you could just add a simple one.

from scheduler-card.

nielsfaber avatar nielsfaber commented on May 12, 2024

@EnryDalo adding such functionality is not considered at this point.
There are two alternatives:

  1. Use the scheduler to trigger a script that contains the condition and action. It is possible to pass a variable (such as temperature setpoint) to the script.
  2. Use an automation to check the condition and turn off the schedule when it should not do anything. There is an open request for giving schedules a better name / entity_id, which should facilitate this.

from scheduler-card.

mycanaletto avatar mycanaletto commented on May 12, 2024

+1

from scheduler-card.

KTibow avatar KTibow commented on May 12, 2024

@mycanaletto please hit the +1 emoji so that people can sort by most positive reactions as well.

from scheduler-card.

nielsfaber avatar nielsfaber commented on May 12, 2024

Suggestion of @MatteGary (I post it here because it is a related FR):

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

from scheduler-card.

nielsfaber avatar nielsfaber commented on May 12, 2024

Conditions are introduced in v1.7.5 so you should be able to make the behavior as you wanted it.
Note that (currently) you cannot set up a condition in combination with an entity attribute, only the state will be checked.
So if you want to use the temperature of a climate entity, you should add a template sensor for this.
Please test this new functionality!

from scheduler-card.

KTibow avatar KTibow commented on May 12, 2024

A bit more margin between the icon and the text is needed:
image
Also, I think the confirm button:
image
Should probably be the same as:
image
Any docs about this?

from scheduler-card.

nielsfaber avatar nielsfaber commented on May 12, 2024

Closing since this is in place now.
If there is more functionality needed regarding conditions, please let me know! (open new FR for it please).

from scheduler-card.

Related Issues (20)

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.