nielsfaber / scheduler-component

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

conditions related to any entity #292

Closed magiva closed 10 months ago

magiva commented 10 months ago

Checklist

Proposal

[clear description of what you want to see changed or added] i have different schedules depending on if im working at home etc, so my home office schedule might be turned on when i decide the night before that ill be here (for example). this means my normal office schedule is turned off and office-at-home schedule is turned on. ..... if i leave the house and travel more than 10km away from home i(automation) turn off the each of the room schedules and turn on the away schedules which sets my heating to a different temperature. but now i dont know which were turned on so i can turn the previous schedules back on when im approaching home. what i currently do is have a wait-until in my automation so if i turn one off, i wait until im approaching home and turn it back on. problem with home assistant, this does not survive a reboot. i could.... have a boolean entity for each schedule to record a manual turn on by user interaction and use that in the automation as a reference to turn the associated schedule back on. like a user-action-memory. it would be a whole lot easier if a schedule could have a condition to work only if a condition is met, such as "im at home" or "approaching home", basically a template entity or an entity i build to reflect true or false for this purpose. it would have to apply if the conditional entity state changes.

Additional info

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

nielsfaber commented 10 months ago

Edit the card and choose which entities you want to show up. Apparently you only chose climate entities, not a valid reason to create an issue here.

magiva commented 10 months ago

this is not what happens

image

i can only select climate entities. im not able to select other entities

nielsfaber commented 10 months ago

Go to edit mode

magiva commented 10 months ago

this is edit as far as i can see as i can edit

image from here i select add as you see in the picture previously

if i select the climate group then i only get the living room entity image

magiva commented 10 months ago

and then this image

then it leads me to only have a condition based on this specific entity

magiva commented 10 months ago

am i doing something wrong ? i dont see a result that i expect which is why i logged it to you