Skip to content

Commit

Permalink
feat: add new sensors (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernst79 authored Aug 25, 2024
1 parent 262eefa commit 25e87a0
Show file tree
Hide file tree
Showing 2 changed files with 375 additions and 42 deletions.
38 changes: 38 additions & 0 deletions src/bthome_ble/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,4 +413,42 @@ class ExtendedSensorLibrary(SensorLibrary):
meas_format=SensorLibrary.CONDUCTIVITY__CONDUCTIVITY,
data_length=2,
),
0x57: MeasTypes(
meas_format=SensorLibrary.TEMPERATURE__CELSIUS,
data_length=1,
data_format="signed_integer",
),
0x58: MeasTypes(
meas_format=SensorLibrary.TEMPERATURE__CELSIUS,
data_length=1,
data_format="signed_integer",
factor=0.35,
),
0x59: MeasTypes(
meas_format=SensorLibrary.COUNT__NONE,
data_length=1,
data_format="signed_integer",
),
0x5A: MeasTypes(
meas_format=SensorLibrary.COUNT__NONE,
data_length=2,
data_format="signed_integer",
),
0x5B: MeasTypes(
meas_format=SensorLibrary.COUNT__NONE,
data_length=4,
data_format="signed_integer",
),
0x5C: MeasTypes(
meas_format=SensorLibrary.POWER__POWER_WATT,
data_length=4,
factor=0.01,
data_format="signed_integer",
),
0x5D: MeasTypes(
meas_format=SensorLibrary.CURRENT__ELECTRIC_CURRENT_AMPERE,
data_length=2,
factor=0.001,
data_format="signed_integer",
),
}
Loading

0 comments on commit 25e87a0

Please sign in to comment.