scheduler-component
scheduler-component copied to clipboard
Add attribute or sensor for schedule's last action
Checklist
- [x] I checked for similar existing requests (both open and closed) before posting.
- [x] My request is generic, other users may benefit from it too.
Proposal
In my example, I use the scheduler for my poolpump, but I think the request is generic.
I miss a way to indicate if the schedules last action was to turn the device on, but the device's current state differs from that (i.e. someone turned it off manually of from other automation).
Additional info
An attribute or sensor that shows the last action (like "status" : "on" / "off" ) would solve this. We could then compare the current status to the entity status and get a warning if they differ.
To accomplish this today, I create separate helper toggles (input_boolean) that is activated from the schedule to indicate which status the switch should have, but with a few schedules, you get a lot of helpers.