Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current Action as a State #416

Open
2 tasks done
Corneloues opened this issue Jan 6, 2025 · 3 comments
Open
2 tasks done

Current Action as a State #416

Corneloues opened this issue Jan 6, 2025 · 3 comments

Comments

@Corneloues
Copy link

Checklist

  • I checked for similar existing requests (both open and closed) before posting.
  • My request is generic, other users may benefit from it too.

Proposal

Return the current action as a state. Therefore each schedule becomes a state machine.

Additional info

States can be used as conditions or triggers thus giving greater flexibility.

By example:

  • I only want to make the the Boost dashboard section visible when the current action is not "Heat".
  • I want to interrupt one schedule because the state of another schedule has changed.
  • I want to trigger several automations dependent on the state of the schedule.
@bennydiamond
Copy link

+1 to this.

I'd like to know what was the last schedule element that triggered and have this value in a sensor or even as an attribute to each schedule switch entity.

Generating an event with data containing the scheduler switch entity name and time of trigger could be neat as well.

@nielsfaber
Copy link
Owner

It is chosen to have a schedule represented as an (on/off) switch entity. I'd like to keep it that way.
The next timeslot / action is visible in the attributes of the switch entity.

@Corneloues
Copy link
Author

It is chosen to have a schedule represented as an (on/off) switch entity. I'd like to keep it that way. The next timeslot / action is visible in the attributes of the switch entity.

Can you recommend the, how I could achieve the use cases in my initial feature request using your existing switch please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants