scheduler-component icon indicating copy to clipboard operation
scheduler-component copied to clipboard

Add attribute or sensor for schedule's last action

Open BoneheadFraggle opened this issue 2 years ago • 0 comments

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.

BoneheadFraggle avatar Aug 12 '22 12:08 BoneheadFraggle