feat: add ha_info, ha_shopping_items endpoints and avahi mDNS service file for HACS integration
- api/index.php: new haGetInfo() endpoint (unique_id, version, instance, items count) - api/index.php: new haGetShoppingItems() endpoint (Bring! + internal shopping list) - api/index.php: haInventorySensor() now accepts ?expiry_days=N query param - api/cron_smart_shopping.php: auto-register avahi mDNS service if avahi-daemon present - docker/avahi-evershelf.xml: Zeroconf _evershelf._tcp service declaration - .env.example: add INSTANCE_NAME variable (used by HA integration for device label)
This commit is contained in:
@@ -129,6 +129,11 @@ GDRIVE_RETENTION_DAYS=30
|
||||
# Leave empty to allow anyone with access to the server to change settings.
|
||||
SETTINGS_TOKEN=
|
||||
|
||||
# INSTANCE_NAME: display name for this EverShelf instance (used by the HA integration
|
||||
# for Zeroconf discovery label and device name in Home Assistant).
|
||||
# Defaults to the server hostname if left empty.
|
||||
INSTANCE_NAME=
|
||||
|
||||
# ── Home Assistant Integration ────────────────────────────────────────────────
|
||||
# All HA settings can also be configured from the Settings → 🏠 tab.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user