mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-10-29 09:11:57 +00:00
Extend TimeWindow with two new optional fields: - month (1–12): restricts the window to a start date in the given calendar month. Useful for seasonal schedules. - end_time: explicit exclusive end-of-window clock time. The effective end is the later of end_time and start_time + duration. Primary motivation is DST handling — a wall-clock end_time stays correct across DST transitions, whereas a fixed duration does not. Rework window semantics so date, weekday, and month restrictions apply to the window's start date, not to every timestamp covered by the window. This makes overnight windows (e.g. Friday 22:00 → Saturday 06:00) behave intuitively under calendar constraints; contains() now checks both today's and yesterday's candidate start. duration becomes optional (default 0). All start/end/duration computations route through _window_start_end and a new _matches_start_date helper, so contains, earliest_start_time, latest_start_time, and available_duration stay consistent. Dashboard: add end_time and month inputs to the time-window editor, render the collapsed window summary as icons + pills. Docs, OpenAPI spec, and generated config docs are regenerated for the new fields. Tests cover month filtering, end_time boundary cases (incl. midnight and overnight), and start-date semantics for overnight windows. Bump version to support automatic updates in Home Assistant. Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
# Home Assistant - Add-on Configuration
|
|
# -------------------------------------
|
|
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-configuration
|
|
#
|
|
# The Akkudoktor-EOS add-on repo is special because there is only one add-on and it is in
|
|
# the root directory (no add-on folder as usual).
|
|
|
|
name: "Akkudoktor-EOS"
|
|
version: "0.3.0.dev2610261491542381"
|
|
slug: "eos"
|
|
description: "Akkudoktor-EOS add-on"
|
|
url: "https://github.com/Akkudoktor-EOS/EOS"
|
|
|
|
arch:
|
|
- aarch64
|
|
- amd64
|
|
|
|
startup: "application"
|
|
init: false
|
|
boot: "auto"
|
|
|
|
# Map home assistant persistent folders
|
|
# /data is automatically mapped - do not list here
|
|
map:
|
|
- share:rw
|
|
- config:rw
|
|
|
|
# API access
|
|
homeassistant: true
|
|
homeassistant_api: true
|
|
|
|
# Ports exposed by the add-on
|
|
# 8504 is listed without a host port, so it stays unpublished by default. Users that run
|
|
# an external reverse proxy can map it in the add-on network settings.
|
|
ports:
|
|
8503/tcp: 8503
|
|
8504/tcp: null
|
|
|
|
ports_description:
|
|
8503/tcp: "EOS REST server"
|
|
8504/tcp: "EOSdash dashboard server (optional, needed for an external reverse proxy)"
|
|
|
|
# EOSdash interface (if not ingress)
|
|
# webui: "http://[HOST]:[PORT:8504]"
|
|
|
|
# EOSdash by ingress
|
|
ingress: true
|
|
ingress_port: 8504
|
|
ingress_stream: true
|
|
panel_icon: "mdi:web"
|
|
|
|
# EOS uses several directories under /data - config, cache, output
|
|
backup_exclude:
|
|
- /data/cache
|
|
- /data/output
|
|
|
|
# We do not use options
|
|
options: {}
|
|
schema: {}
|