Skip to content

Commit

Permalink
Add level command and status (#565)
Browse files Browse the repository at this point in the history
* Add Level Command

* Add Level Status

* Add definitions

---------

Co-authored-by: Jason B. Koh <[email protected]>
  • Loading branch information
connorjcantrell and jbkoh authored Jan 15, 2024
1 parent 8a0cecb commit db76a6e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bricksrc/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
},
"Relay_Command": {"tags": [TAG.Point, TAG.Relay, TAG.Command]},
"Light_Command": {"tags": [TAG.Point, TAG.Light, TAG.Command]},
"Level_Command": {
"tags": [TAG.Level, TAG.Command, TAG.Point],
},
"Speed_Command": {"tags": [TAG.Point, TAG.Speed, TAG.Command]},
"Cooling_Command": {"tags": [TAG.Point, TAG.Cool, TAG.Command]},
"Heating_Command": {"tags": [TAG.Point, TAG.Heat, TAG.Command]},
Expand Down
2 changes: 2 additions & 0 deletions bricksrc/definitions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,8 @@ https://brickschema.org/schema/Brick#Leaving_Water_Temperature_Proportional_Band
https://brickschema.org/schema/Brick#Leaving_Water_Temperature_Sensor,Measures the temperature of water leaving a piece of equipment or system,
https://brickschema.org/schema/Brick#Leaving_Water_Temperature_Setpoint,Sets temperature of leaving water,
https://brickschema.org/schema/Brick#Level,,
https://brickschema.org/schema/Brick#Level_Command,"Adjusts the operational state to a specific level within a predefined range.",
https://brickschema.org/schema/Brick#Level_Status,"The current operational state of a specific level within a predefined range.",
https://brickschema.org/schema/Brick#Library,"A place for the storage and/or consumption of physical media, e.g. books, periodicals, and DVDs/CDs",
https://brickschema.org/schema/Brick#Light_Command,Controls the amount of the light provided by the device,
https://brickschema.org/schema/Brick#Lighting,,
Expand Down
3 changes: 3 additions & 0 deletions bricksrc/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,9 @@
"tags": [TAG.Point, TAG.Pressure, TAG.Status],
},
"Lead_Lag_Status": {"tags": [TAG.Point, TAG.Lead, TAG.Lag, TAG.Status]},
"Level_Status": {
"tags": [TAG.Level, TAG.Status, TAG.Point],
},
"Stages_Status": {"tags": [TAG.Point, TAG.Stages, TAG.Status]},
"System_Shutdown_Status": {
"tags": [TAG.Point, TAG.System, TAG.Shutdown, TAG.Status],
Expand Down

0 comments on commit db76a6e

Please sign in to comment.