nielsfaber / scheduler-component

Custom component for HA that enables the creation of scheduler entities
GNU General Public License v3.0
634 stars 41 forks source link

Add condition for single action in time scheme from card. #177

Closed Pigi-102 closed 2 years ago

Pigi-102 commented 2 years ago

Checklist

Proposal

[clear description of what you want to see changed or added] It would be nice to be able to set a condition only for a time slot when using scheme to gain more granularity over configurations. It seems to be possible to do this from the "scheduler.storage" file but not get reflected in UI

Additional info

[some example of how the new functionality should look like]

My need ( but I don't think it's only mine ) is to, for example, turn on heat at specific time in the morning, but only if the temperature from a sensor is lower than a value: Turn on heat at 6.30 AM in room temperature is below 18° otherwise don't do nothing.

calisro commented 2 years ago

I have this same requirement. If I set a condition for the schedule, it impacts both on and off. Really what I need is to say don't turn on unless its true. The only way to achieve this currently is to setup multiple different on and off schedules.

nielsfaber commented 2 years ago

This request belongs in scheduler-card, not in scheduler-component. The scheduler-component can already handle conditions per timeslot, the card cannot. I am not planning to add this to the card, since I think it would make the UI very complex. As a workaround you could play with the conditions. E.g.:

If room temperature is below 18 OR thermostat is not off

Would effectively cause the timeslots where thermostat should be turned off to always be executed, so the 'temperature below 18' part applies to the timeslots where the thermostat should start heating.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days