nielsfaber / scheduler-card

HA Lovelace card for control of scheduler entities
GNU General Public License v3.0
880 stars 111 forks source link

Add the time domain (time entities) to the list of standard configuration actions #807

Open pdcastro opened 6 months ago

pdcastro commented 6 months ago

Checklist

Proposal

Many Home Assistant integrations (components) provide entities in the ‘time’ domain (see Time Entity docs), e.g. time.start_time or time.duration, comparable to other perhaps more common domains such as switch, e.g. switch.garden_sprinkler (see Switch Entity docs).

The scheduler card’s standard configuration ignores those time entities though. Visually, this means that time entities are not included in the following list: Scheduler Card Configuration - Entities - No Time As per title, this issue requests that time entities be added to the standard configuration action list.

Whether or not time entities can currently be used through the scheduler card’s customize configuration, the point of this issue is to request that time entities be included in the standard configuration action list, so that they work “out of the box”.

Additional info

Why would anyone want to schedule the setting of a time? I.e. calling a time entity’s set_value() method at a chosen (scheduled) time.

There are Home Assistant integrations that control physical devices primarily through the setting of one or more of: start time, end time, target time, and duration. These integrations may not expose, say, switch entities that allow the physical device to be turned on/off directly through the Scheduler Component & Card at certain times. This may be because the physical device requires local on/off control by its algorithm, or centralized control by a cloud service. For example:

Even though such devices or integrations allow the user to set the relevant start/end/target time or duration manually through the Home Assistant frontend or through automations or scripts, using the Scheduler Component & Card to set those times or durations would be most convenient in many cases, altogether avoiding the need to write custom automations or scripts. For example:

pdcastro commented 6 months ago

I have put together PR #808 that addresses this issue. Feedback is welcome!

github-actions[bot] commented 5 months 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

pdcastro commented 5 months ago

Not stale - awaiting codebase rewrite as per PR 808 comment.

github-actions[bot] commented 4 months 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

github-actions[bot] commented 3 months 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

github-actions[bot] commented 2 months 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

github-actions[bot] commented 1 month 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

github-actions[bot] commented 6 days 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

pdcastro commented 5 days ago

Bump