Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Timeframe HA Sync Addon

A minimal Home Assistant addon that syncs timeframe_*, weather.*, and media_player.* entities to Timeframe.

Setup

  1. In Timeframe, go to your Profile and copy the Home Assistant Sync API Key for your location
  2. Install this addon in Home Assistant
  3. Configure the addon with your API key
  4. Start the addon

Configuration

Option Description Default
api_key API key from your Timeframe profile page required
sync_interval_seconds How often to poll HA for changes (seconds) 1

Changes to the selected player's artist, title, or playback visibility, status labels, daily events, and current feels-like temperature sync on the next poll, without waiting for a cooldown. With the default polling interval, detection normally takes about one second; cloud processing and device refresh add latency.

Other changes, such as playback position and background entity attributes, sync at most once per 60 seconds. An unchanged snapshot is also uploaded after 60 seconds to keep the cloud data fresh. Every upload includes the latest full snapshot, so intermediate states are not queued. Failed uploads use exponential retry backoff from 2 seconds up to 60 seconds, including for immediate updates.

How it works

The addon polls Home Assistant for all entities matching timeframe_*, weather.*, or media_player.* and sends their current state to the Timeframe cloud API. Only the latest sync data is stored.

Configuration entities

You can create these optional sensor entities in Home Assistant (e.g. via template sensors or helpers) to control which entities Timeframe uses:

Entity ID Default behavior Description
sensor.timeframe_daily_event_* None Adds all-day events to the timeline. State format: icon,label(optional). Return multiple events by using newlines.
sensor.timeframe_media_player_entity_id Uses the first media_player.* entity Set the state to a specific media player entity ID (e.g. media_player.living_room) to control which player's now-playing info is shown.
sensor.timeframe_weather_entity_id Uses the first weather.* entity Set the state to a specific weather entity ID (e.g. weather.home) to control which weather entity provides forecasts.
sensor.timeframe_weather_feels_like_entity_id Uses apparent_temperature from the weather entity Set the state to a specific sensor entity ID to override the feels-like temperature display.

Resource usage

This addon is designed to be extremely lightweight — it's a single shell script using curl and jq with no runtime dependencies.

Development

Run the sync regression tests with mise exec -- bash test/sync_test.sh. GitHub Actions runs shell syntax checks and the regression suite on pull requests and pushes to main.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages