feat: add 3D hydronic manifolds buffer tanks and fresh water stations
This commit is contained in:
1 parent
93c015ec77
commit
173d02e3cc
37 files changed
+3253
-1815
No files matched your search
@@ -353,6 +353,45 @@ _PIN_OFFSET = vol.Any(
|
||||
vol.Schema({vol.Optional(k): vol.All(vol.Coerce(float), vol.Range(min=-5, max=5)) for k in ("x", "y", "z")}),
|
||||
)
|
||||
|
||||
_HYDRONIC_CONTROL = {
|
||||
vol.Optional("command"): _ENTITY_REF,
|
||||
vol.Optional("feedback"): _ENTITY_REF,
|
||||
vol.Optional("inverted"): bool,
|
||||
}
|
||||
_HYDRONIC = {
|
||||
vol.Optional("card"): bool,
|
||||
vol.Optional("circuits"): vol.All(
|
||||
[
|
||||
{
|
||||
vol.Required("id"): _ID,
|
||||
vol.Required("name"): vol.All(str, vol.Length(max=100)),
|
||||
vol.Required("kind"): vol.In(["heating", "cooling", "changeover", "pump"]),
|
||||
vol.Optional("has_pump"): bool,
|
||||
vol.Optional("has_valve"): bool,
|
||||
vol.Optional("pump"): _HYDRONIC_CONTROL,
|
||||
vol.Optional("valve"): _HYDRONIC_CONTROL,
|
||||
**{vol.Optional(key): _ENTITY_REF for key in ("flow", "return", "power", "mode_entity")},
|
||||
vol.Optional("cooling_value"): vol.All(vol.Coerce(int), vol.Range(min=-2147483648, max=2147483647)),
|
||||
}
|
||||
],
|
||||
vol.Length(max=32),
|
||||
),
|
||||
vol.Optional("sensors"): vol.All(
|
||||
[
|
||||
{
|
||||
vol.Required("id"): _ID,
|
||||
vol.Required("name"): vol.All(str, vol.Length(max=100)),
|
||||
vol.Required("entity"): _ENTITY_REF,
|
||||
vol.Required("level"): vol.All(vol.Coerce(float), vol.Range(min=0, max=1)),
|
||||
}
|
||||
],
|
||||
vol.Length(max=64),
|
||||
),
|
||||
**{vol.Optional(key): _ENTITY_REF for key in ("flow", "return", "circulation_temperature", "hot_water")},
|
||||
vol.Optional("pump"): _HYDRONIC_CONTROL,
|
||||
vol.Optional("circulation"): _HYDRONIC_CONTROL,
|
||||
}
|
||||
|
||||
FURNITURE_SCHEMA = vol.Schema(
|
||||
{
|
||||
vol.Required("id"): _ID,
|
||||
@@ -391,6 +430,7 @@ FURNITURE_SCHEMA = vol.Schema(
|
||||
vol.Optional("entity", default=None): vol.Any(None, vol.All(str, vol.Length(max=255))),
|
||||
vol.Optional("power", default=None): vol.Any(None, vol.All(str, vol.Length(max=255))),
|
||||
vol.Optional("power_card"): bool,
|
||||
vol.Optional("hydronic"): vol.Any(None, _HYDRONIC),
|
||||
# smart fridge: door sensors of the left and the right door
|
||||
vol.Optional("door_left", default=None): vol.Any(None, vol.All(str, vol.Length(max=255))),
|
||||
vol.Optional("door_right", default=None): vol.Any(None, vol.All(str, vol.Length(max=255))),
|
||||
|
||||
Reference in new issue
Block a user