feature/ha-adapter: Grundmodell, Client und Reader für Home Assistant

This commit is contained in:
2026-06-10 09:17:27 +02:00
parent 1549acb90b
commit 43fb8fac2e
4 changed files with 121 additions and 0 deletions

19
app/ha/models.py Normal file
View File

@@ -0,0 +1,19 @@
from __future__ import annotations
from pydantic import BaseModel
class HaState(BaseModel):
entity_id: str
state: str
attributes: dict[str, object] | None = None
last_changed: str | None = None
last_updated: str | None = None
class HaEntitySummary(BaseModel):
entity_id: str
domain: str
state_class: str | None = None
device_class: str | None = None
unit_of_measurement: str | None = None