一个电子纸日历、天气预报和智能家居家庭仪表板,适用于 Home Assistant
An e-paper calendar, weather, and smart home family dashboard
https://github.com/timeframe/ha-addonhttp://homeassistant.local:8099)Timeframe can also run as a regular Docker container, independent of the Home Assistant add-on system. All configuration comes from environment variables, and it can point at any reachable Home Assistant instance — local or remote.
You'll need a Home Assistant long-lived access token: in HA, open your profile → Security → Long-Lived Access Tokens → Create Token.
A ready-to-edit docker-compose.yml is included. Set TIMEFRAME_HOME_ASSISTANT_URL and TIMEFRAME_HOME_ASSISTANT_TOKEN, then:
docker compose up -d --build
Open the dashboard at http://localhost:8099.
docker build -t timeframe .
docker run -d \
--name timeframe \
-p 8099:8099 \
-v timeframe-data:/data \
-e TIMEFRAME_HOME_ASSISTANT_URL="http://192.168.1.50:8123" \
-e TIMEFRAME_HOME_ASSISTANT_TOKEN="your_long_lived_access_token" \
timeframe
| Variable | Default | Description |
|---|---|---|
TIMEFRAME_HOME_ASSISTANT_URL |
http://homeassistant.local:8123 |
Base URL of your Home Assistant instance. Use any reachable address, e.g. http://192.168.1.50:8123. |
TIMEFRAME_HOME_ASSISTANT_TOKEN |
(required) | Home Assistant long-lived access token. Required when running standalone. |
TIMEFRAME_TEMPERATURE_UNIT |
F |
F or C. |
TIMEFRAME_SPEED_UNIT |
mph |
mph or kph. |
TIMEFRAME_PRECIPITATION_UNIT |
in |
in, mm, or cm. |
SECRET_KEY_BASE |
(auto-generated) | Secret used to encrypt sessions and stored data. If unset, a random key is generated and persisted to the /data volume on first run. |
PORT |
8099 |
Port the web interface listens on inside the container. |
Keep the /data volume across restarts — it holds the bundled Postgres database and the generated secret key.
When installed as a Home Assistant add-on, Timeframe instead authenticates automatically via the Supervisor and reads unit options from the add-on configuration UI, so no environment variables are required in that mode.
The following entities can be created in Home Assistant to customize behavior. Icon names are from Material Design Icons (without the mdi- prefix).
| Entity ID | Default behavior | Description |
|---|---|---|
sensor.timeframe_top_right_* |
None | Displays items in the top-right corner. State format: icon,label(optional),rotation(optional) (e.g. door-open,Front Door). Labels containing underscores are automatically humanized. Return multiple items for a single sensor by using newlines. Rotation is a degree value for the icon (e.g. for wind direction). |
sensor.timeframe_top_left_* |
None | Displays items in the top-left corner. State format: icon,label(optional),rotation(optional) |
sensor.timeframe_weather_status_* |
None | Displays weather status items. State format: icon,label(optional),rotation(optional) |
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. |
Here are some example template sensors:
sensor.timeframe_top_left_status{% if is_state('input_boolean.check_mailbox', 'on') %}
mailbox,Check mail
{% endif %}
sensor.timeframe_top_left_unavailable_entities…
sensor.timeframe_top_left_low_batteries{% for state in states.sensor
|selectattr('attributes.device_class', '==', 'battery')
|selectattr('entity_id', 'search', 'battery_level') -%}
{% if states(state.entity_id) |int(100) 0 %} ({% if days %}{{ days }}d{% endif %}{% if hours %}{{ hours }}h{% endif %}{% if minutes %}{{ minutes }}m{% endif %}){% endif %}
{% endif %}
sensor.timeframe_top_left_door_locks…
sensor.timeframe_top_left_backup_battery_status{% if is_state('sensor.solaredge_grid_power', 'unknown') %}
battery,Backup {{ states('sensor.solaredge_storage_level') }}%
{% endif %}
sensor.timeframe_top_left_dishwasher_needs_attention{% set power = states('sensor.kitchen_dishwasher_switched_outlet_power') %}
{% if is_number(power) and power | float 19 %}
dishwasher,Run the dishwasher!
{% endif %}
sensor.timeframe_top_left_heat_pump_status{% if not is_state('select.main_heat_source', 'heat pump only') %}
heat,Main HVAC {{ states("select.main_heat_source") }}
{% endif %}
{% if not is_state('select.upstairs_heat_source', 'heat pump only') %}
heat,Upstairs HVAC {{ states("select.upstairs_heat_source") }}
{% endif %}
sensor.timeframe_weather_status_uv{% set uv = states('sensor.weather_station_uv_index') | float(-1) %}
{% if uv > 3 %}
weather-sunny-alert,{{ uv | int }}
{% endif %}
sensor.timeframe_weather_status_wind_gust{% if states('sensor.weather_station_wind_gust') | int > 10 %}
arrow-up,{{states('sensor.weather_station_wind_gust') | int}},{{states('sensor.weather_station_wind_direction_average') | int - 45 }}
{% endif %}
sensor.timeframe_top_right_birdbird,{{ states('sensor.least_recently_seen_bird') }}
sensor.timeframe_weather_status_lightning…
sensor.timeframe_weather_feels_like_entity_idsensor.weather_station_feels_like
sensor.timeframe_media_player_entity_idmedia_player.sonos_amp_2
sensor.timeframe_weather_status_open_windows{% set temp = states('sensor.weather_station_feels_like') | int %}
{% set aqi = states('sensor.airnow_air_quality_index') | int %}
{% set now = now().time() %}
{% set start = strptime('06:00', '%H:%M').time() %}
{% set end = strptime('20:00', '%H:%M').time() %}
{% if aqi 63 and temp 0 %}
email-outline, SoloFolio message
{% endif %}
sensor.timeframe_top_left_dryer_status{% if is_state('input_boolean.laundry_dryer_needs_changed', 'on') %}
{% set elapsed = as_timestamp(now()) - as_timestamp(states.input_boolean.laundry_dryer_needs_changed.last_changed) %}
{% set total_minutes = ((elapsed + 150) // 300 * 5) | int %}
{% set days = total_minutes // 1440 %}
{% set hours = total_minutes % 1440 // 60 %}
{% set minutes = total_minutes % 60 %}
tumble-dryer,Dryer{% if total_minutes > 0 %} ({% if days %}{{ days }}d{% endif %}{% if hours %}{{ hours }}h{% endif %}{% if minutes %}{{ minutes }}m{% endif %}){% endif %}
{% endif %}
sensor.timeframe_top_left_dog_bowl_status{% if is_state('binary_sensor.dog_bowl_water_detected', 'off') %}
paw,Water low
{% endif %}
sensor.timeframe_top_left_rav4_status{% if is_state('device_tracker.garage_rav4_beacon', 'home') and is_state('sensor.garage_ev_charger_west_status', 'not_connected') %}
charging-station,RAV4 unplugged
{% endif %}
sensor.timeframe_top_left_groceries_status{% if is_state('input_boolean.bring_in_groceries', 'on') %}
basket,Bring in groceries
{% endif %}
sensor.timeframe_top_left_printer_status{% set toner = states('sensor.away_room_printer_black_toner_remaining') %}
{% if is_number(toner) and toner | float 19 %}
door-closed,Open Door for robot
{% endif %}
sensor.timeframe_weather_status_air_quality_warning{% set aqi = states('sensor.honeysuckle_air_quality_aqi_us_aqi') | int %}
{% if aqi > 100 %}
face-mask-outline,{{ aqi }}
{% elif aqi > 50 %}
air-filter,{{ aqi }}
{% endif %}
sensor.timeframe_top_left_solar_power_warning{% set uv = states('sensor.weather_station_uv_index') %}
{% set solar_kw = states('sensor.solaredge_solar_power') %}
{% if is_number(uv) and is_number(solar_kw) and uv | float >= 4 and solar_kw | float 4 but low solar output!
{% endif %}
You can customize how an individual calendar event renders by adding one or more tokens to its description. Tokens are usually placed on their own line and are stripped from any text shown on the display. Icon names come from Material Design Icons (without the mdi- prefix).
| Token | Description |
|---|---|
timeframe-omit |
Hides this event from the display. |
timeframe-icon:NAME |
Sets the event's icon, e.g. timeframe-icon:soccer. An mdi- prefix is accepted and ignored. |
timeframe-title:TEXT |
Overrides the displayed title without changing the real event title. |
timeframe-only:TOKENS |
Shows the event only on the listed devices. TOKENS is a comma-separated list of device names or ids, e.g. timeframe-only:Kitchen, 12. |
timeframe-banner (or #banner) |
Shows the event as a full-width banner while it is active (see below). |
timeframe-countdown:N |
Adds an all-day "(in Xd)" reminder on each of the N days leading up to the event (never on/after the event day). N is a positive number (up to 999). Honored by the hosted Timeframe app. |
A recurring event whose title ends with a four-digit year in parentheses, e.g. Ada (1990), renders that year as an elapsed count (Ada (35)) — this is how birthdays and anniversaries show an age.
To display a full-width banner at the bottom of the screen, include timeframe-banner or #banner in a calendar event's description. The banner appears while the event is active (between its start and end times).
, , , ) is supported; plain-text newlines are converted to line breaks.Example: Create a calendar event titled "School Closed Today" with the description:
#banner
Due to inclement weather, all schools will be closed today. Stay safe!
Create config/timeframe.yml from config/timeframe.yml.example with your settings.
| Variable | Description |
|---|---|
VISIONECT_SERVER |
Experimental. Set to "true" to start the Visionect TCP protocol server alongside Puma. Required for Visionect Place & Play / Joan 13 Pro devices. |
bundle installbin/rails s暂无开放 Issues,或尚未同步最近议题。