-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f57e871
commit caaffb1
Showing
35 changed files
with
516 additions
and
369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from enum import auto | ||
from typing import List | ||
|
||
from gw.enums import GwStrEnum | ||
|
||
|
||
class AquastatControl(GwStrEnum): | ||
""" | ||
Values: | ||
- Boiler | ||
- Scada | ||
For more information: | ||
- [ASLs](https://gridworks-type-registry.readthedocs.io/en/latest/) | ||
- [Global Authority](https://gridworks-type-registry.readthedocs.io/en/latest/enums.html#aquastatcontrolstate) | ||
""" | ||
|
||
Boiler = auto() | ||
Scada = auto() | ||
|
||
@classmethod | ||
def default(cls) -> "AquastatControl": | ||
return cls.Boiler | ||
|
||
@classmethod | ||
def values(cls) -> List[str]: | ||
return [elt.value for elt in cls] | ||
|
||
@classmethod | ||
def enum_name(cls) -> str: | ||
return "aquastat.control.state" | ||
|
||
@classmethod | ||
def enum_version(cls) -> str: | ||
return "000" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from enum import auto | ||
from typing import List | ||
|
||
from gw.enums import GwStrEnum | ||
|
||
|
||
class ChangeStoreFlowRelay(GwStrEnum): | ||
""" | ||
Events that trigger changing StoreFlowDirection finite state machine | ||
Values: | ||
- DischargeStore | ||
- ChargeStore | ||
For more information: | ||
- [ASLs](https://gridworks-type-registry.readthedocs.io/en/latest/) | ||
- [Global Authority](https://gridworks-type-registry.readthedocs.io/en/latest/enums.html#changestoreflowrelay) | ||
""" | ||
|
||
DischargeStore = auto() | ||
ChargeStore = auto() | ||
|
||
@classmethod | ||
def default(cls) -> "ChangeStoreFlowRelay": | ||
return cls.DischargeStore | ||
|
||
@classmethod | ||
def values(cls) -> List[str]: | ||
return [elt.value for elt in cls] | ||
|
||
@classmethod | ||
def enum_name(cls) -> str: | ||
return "change.store.flow.relay" | ||
|
||
@classmethod | ||
def enum_version(cls) -> str: | ||
return "000" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from enum import auto | ||
from typing import List | ||
|
||
from gw.enums import GwStrEnum | ||
|
||
|
||
class HeatPumpControl(GwStrEnum): | ||
""" | ||
Values: | ||
- BufferTankAquastat | ||
- Scada | ||
For more information: | ||
- [ASLs](https://gridworks-type-registry.readthedocs.io/en/latest/) | ||
- [Global Authority](https://gridworks-type-registry.readthedocs.io/en/latest/enums.html#heatpumpcontrol) | ||
""" | ||
|
||
BufferTankAquastat = auto() | ||
Scada = auto() | ||
|
||
@classmethod | ||
def default(cls) -> "HeatPumpControl": | ||
return cls.BufferTankAquastat | ||
|
||
@classmethod | ||
def values(cls) -> List[str]: | ||
return [elt.value for elt in cls] | ||
|
||
@classmethod | ||
def enum_name(cls) -> str: | ||
return "heat.pump.control" | ||
|
||
@classmethod | ||
def enum_version(cls) -> str: | ||
return "000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
from enum import auto | ||
from typing import List | ||
|
||
from gw.enums import GwStrEnum | ||
|
||
|
||
class HeatcallSource(GwStrEnum): | ||
""" | ||
Used for reflecting the state of a double-throw relay that can toggle between a failsafe | ||
for providing a 24V heat call to a zone controller (aka Wall Thermostat) and the SCADA providing | ||
that heat call | ||
Values: | ||
- WallThermostat | ||
- Scada | ||
For more information: | ||
- [ASLs](https://gridworks-type-registry.readthedocs.io/en/latest/) | ||
- [Global Authority](https://gridworks-type-registry.readthedocs.io/en/latest/enums.html#heatcallsource) | ||
""" | ||
|
||
WallThermostat = auto() | ||
Scada = auto() | ||
|
||
@classmethod | ||
def default(cls) -> "HeatcallSource": | ||
return cls.WallThermostat | ||
|
||
@classmethod | ||
def values(cls) -> List[str]: | ||
return [elt.value for elt in cls] | ||
|
||
@classmethod | ||
def enum_name(cls) -> str: | ||
return "heatcall.source" | ||
|
||
@classmethod | ||
def enum_version(cls) -> str: | ||
return "000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
from enum import auto | ||
from typing import List | ||
|
||
from gw.enums import GwStrEnum | ||
|
||
|
||
class PicoCyclerEvent(GwStrEnum): | ||
""" | ||
Values: | ||
- PicoMissing | ||
- ConfirmOpened | ||
- StartClosing | ||
- ConfirmClosed | ||
- ConfirmRebooted | ||
- AllZombies | ||
- RebootDud | ||
For more information: | ||
- [ASLs](https://gridworks-type-registry.readthedocs.io/en/latest/) | ||
- [Global Authority](https://gridworks-type-registry.readthedocs.io/en/latest/enums.html#picocyclerevent) | ||
""" | ||
|
||
PicoMissing = auto() | ||
ConfirmOpened = auto() | ||
StartClosing = auto() | ||
ConfirmClosed = auto() | ||
ConfirmRebooted = auto() | ||
AllZombies = auto() | ||
RebootDud = auto() | ||
|
||
@classmethod | ||
def default(cls) -> "PicoCyclerEvent": | ||
return cls.ConfirmRebooted | ||
|
||
@classmethod | ||
def values(cls) -> List[str]: | ||
return [elt.value for elt in cls] | ||
|
||
@classmethod | ||
def enum_name(cls) -> str: | ||
return "pico.cycler.event" | ||
|
||
@classmethod | ||
def enum_version(cls) -> str: | ||
return "000" |
Oops, something went wrong.