nielsfaber / scheduler-card

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

Add colors to time slots #758

Closed tonyroberts closed 10 months ago

tonyroberts commented 1 year ago

Checklist

Proposal

Related to #748

Making it possible to configure colors of the timeslots would make it easier to see what's scheduled at a glance, for example

image

Different use cases will require different color schemes (e.g. presets or fixed temperatures) and so the solution needs to be flexible, allowing the user complete control over the style used for each timeslot.

I suggest adding an optional javascript function to the config which if present will be called for each timeslot object and will return any additional style (background, color, etc) to apply to the timeslot.

Additional info

I've already implemented this in my own fork and will raise a PR for review shortly.

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

tonyroberts commented 11 months ago

@nielsfaber did you want to take a look at the PR for this? I don't have permission to remove the stale label, but the PR is ready to be merged. Thanks!

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