feat: add native Symcon room climate, schedules, weather and presence

This commit is contained in:
jhartworks committed 2026-11-11 09:34:26 +01:00
1 parent 510aece983
commit 18e73194e0
37 files changed
+2861 -2132

No files matched your search

+19
View File
@@ -73,6 +73,23 @@ ROOM_SCHEMA = vol.Schema(
),
# underfloor heating: the entity whose heating makes the floor glow
vol.Optional("floor_heating"): vol.Any(None, vol.All(str, vol.Length(max=255))),
vol.Optional("hvac"): vol.Any(
None,
{
**{
vol.Optional(key): _ENTITY_REF
for key in (
"supply_vsr",
"extract_vsr",
"supply_temperature",
"extract_temperature",
"reheat",
"status",
)
},
vol.Optional("schedules"): vol.All([vol.All(str, vol.Length(max=255))], vol.Length(max=100)),
},
),
vol.Required("points"): vol.All([_POINT], vol.Length(min=3, max=MAX_POINTS)),
vol.Required("floor_material"): vol.All(str, vol.Length(max=32)),
# the camera this room opens with when it is tapped (None = framed from above)
@@ -959,6 +976,7 @@ SETTINGS_SCHEMA = vol.Schema(
vol.Optional("roof", default=lambda: {"type": "none", "pitch": 35, "overhang": 0.4}): ROOF_SCHEMA,
# the weather entity for the weather outside (None = the first one)
vol.Optional("weather_entity", default=None): vol.Any(None, vol.All(str, vol.Length(max=255))),
vol.Optional("weather_variables"): vol.Any(None, {str: _ENTITY_REF}),
# which weather effects the 3D view shows (None = all but fog)
# warning for a window open while it rains
vol.Optional("rain_warning", default=True): bool,
@@ -1074,6 +1092,7 @@ ENERGY_SCHEMA = vol.Schema(
# Which sensor tells the room of a person (ESPresense, Bermuda: the state is a room or area name)
PRESENCE_SCHEMA = vol.Schema(
{
vol.Optional("name"): vol.Any(None, _NAME),
vol.Required("person"): vol.All(str, vol.Length(max=255)),
vol.Required("sensor"): vol.Any(None, _ENTITY),
vol.Optional("room"): vol.Any(None, vol.All(str, vol.Length(max=64))),