Skip to content

Commit

Permalink
Update Units of Measurement to match recent firmware (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
shbatm authored Jun 27, 2023
1 parent a058c09 commit 83aa50d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions pyisyox/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,29 @@ class NodeFamily(StrEnum):
"118": "hPa",
"119": "Wh",
"120": "in/day",
"122": "μg/m³", # Microgram per cubic meter
"123": "bq/m³", # Becquerel per cubic meter
"124": "pCi/L", # Picocuries per liter
"125": "pH",
"126": "bpm", # Beats per Minute
"127": "mmHg",
"128": "J",
"129": "BMI", # Body Mass Index
"130": "L/h",
"131": "dBm",
"132": "bpm", # Breaths per minute
"133": "kHz",
"134": "m/²",
"135": "VA", # Volt-Amp
"136": "var", # VAR = Volt-Amp Reactive
"137": "", # NTP DateTime - Number of seconds since 1900
"138": "psi",
"139": "°",
"140": "mg/L",
"141": "N",
"142": "gal/s",
"143": "gpm",
"144": "gph",
}

UOM_TO_STATES: dict[str, dict[str, str]] = {
Expand Down
3 changes: 2 additions & 1 deletion pyisyox/node_servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ async def parse_node_server_file(self, path: str, file_content: str) -> None:
self._node_server_nls[slot] = nls_lookup
except ValueError:
_LOGGER.error(
"Error parsing language file for node server slot %s, invalid format"
"Error parsing language file for node server slot %s, invalid format",
slot,
)

if self.isy.args and self.isy.args.file:
Expand Down

0 comments on commit 83aa50d

Please sign in to comment.