Schedule Timeline Card: see when your schedule entities actually run

Schedule Timeline Card: see when your schedule entities actually run

Hi everyone,

I built a Lovelace card to solve a limitation that has bothered me for a long time: the schedule entity only tells you whether it is on or off, not when it runs.

Display modes

  • Simple: a clean on/off indicator with a configurable icon.
  • Next event: shows the next activation or deactivation with a countdown (e.g. “Turns on tomorrow 05:30 · in 6h 49min”).
  • Calendar: a 24h timeline per day with the configured on-periods painted in. Choose 1 to 7 days. Today comes first, highlighted, with a marker for the current time.

More features

  • Separate icons for the on and off states
  • Adjustable hour window (e.g. 06:00 to 22:00) and optional total on-time per day
  • Tooltips on each period with start, end and duration
  • Visual editor, no YAML required
  • Follows your theme colors, works in light and dark mode
  • Portuguese and English texts, picked from your Home Assistant language

Example

type: custom:schedule-timeline-card
entity: schedule.irrigation
mode: calendar
icon: mdi:sprinkler
days: 5

Installation

Via HACS, go to Custom repositories and add:

https://github.com/andregoncalvespires/schedule-timeline-card

with the category Dashboard. Manual installation is also possible, see the README.

I have also submitted it to the HACS default list, and the pull request is awaiting review.

Limitation

Schedules defined in YAML may not show up in calendar mode, because the card reads the periods through the helper WebSocket API. Schedules created in the UI (helpers) work normally.

Repository

Feedback, suggestions and bug reports are welcome, preferably through GitHub Issues or in this thread. If something does not work, please include your Home Assistant version and the card configuration.

2 Likes

EDIT: never mind. This is a github issue. They’ve updated their Content Security Policy (CSP) headers, making them over 9KB which chokes aiohttp’s rigid 8KB default buffer size. It will be interesting to see how this is fixed.

I’ve been looking for something like this for a while. Even opened a feature request on gihub.

Unfortunately when attempting to download it I get the following error:

This log entry is from a custom integration.

Logger: custom_components.hacs
Source: custom_components/hacs/base.py:699
Integration: HACS (documentation, issues)
First occurred: 12:47:39 (1 occurrence)
Last logged: 12:47:39

Download failed - 400, message='Got more than 8190 bytes when reading: b"default-src \'none\'; base-uri \'self\'; child-src github.githubassets.com github.com/assets-cdn/worker/...".', url='https://github.com/andregoncalvespires/schedule-timeline-card/releases/download/v1.0.4/schedule-timeline-card.js'
Traceback (most recent call last):
  File "/usr/local/lib/python3.14/site-packages/aiohttp/client_proto.py", line 359, in data_received
    messages, upgraded, tail = self._parser.feed_data(data)
                               ~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "aiohttp/_http_parser.pyx", line 723, in aiohttp._http_parser.HttpParser.feed_data
    raise ex
  File "aiohttp/_http_parser.pyx", line 925, in aiohttp._http_parser.cb_on_header_value
    raise LineTooLong(value[:100] + b"...", pyparser._max_field_size)
aiohttp.http_exceptions.LineTooLong: 400, message:
  Got more than 8190 bytes when reading: b"default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/...".

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.14/site-packages/aiohttp/client_reqrep.py", line 745, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/aiohttp/streams.py", line 716, in read
    await self._waiter
aiohttp.http_exceptions.HttpProcessingError: 400, message:
  Got more than 8190 bytes when reading: b"default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/...".

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/hacs/base.py", line 699, in async_download_file
    request = await self.session.get(
              ^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/usr/local/lib/python3.14/site-packages/aiohttp/client.py", line 900, in _request
    resp = await handler(req)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/aiohttp/client_middlewares.py", line 36, in single_middleware_handler
    return await middleware(req, handler)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 70, in _ssrf_redirect_middleware
    resp = await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/aiohttp/client.py", line 878, in _connect_and_send_request
    await resp.start(conn)
  File "/usr/local/lib/python3.14/site-packages/aiohttp/client_reqrep.py", line 747, in start
    raise ClientResponseError(
    ...<5 lines>...
    ) from exc
aiohttp.client_exceptions.ClientResponseError: 400, message='Got more than 8190 bytes when reading: b"default-src \'none\'; base-uri \'self\'; child-src github.githubassets.com github.com/assets-cdn/worker/...".', url='https://github.com/andregoncalvespires/schedule-timeline-card/releases/download/v1.0.4/schedule-timeline-card.js'

Yep - I’ve had that on every update I have tried to install this afternoon

It’s strange. I just did an add-on update and it worked.

1 Like

Oh now that the github glitch is fixed I’ve had a chance to try this.

The card is excellent but any chance you could use the server language for the card configuration?

Mine is English not Portuguese

Thank you very much for your contribution!
Based on your code and idea, I have created a custom Dashboard to display on/off sensors in a configurable timeline. It does not show a schdule, but uses a similar display to show sensor states.
I have referenced your work.

Code and repo here:.

https://github.com/Gaudi111/status-timeline-card/raw/main/images/status-timeline-card-screenshot.png

Thanks again for the idea and original developmen, it was very inspiring.

Regards

This card is excellent and exactly what I was looking for, only difficulty was that it was not in English but have figured what what each does. Thanks for creating and posting here.