Skip to content

Commit

Permalink
Add TIME_OF_OPERATION to smoke detector
Browse files Browse the repository at this point in the history
  • Loading branch information
SukramJ committed Nov 23, 2024
1 parent 49adb26 commit 80b67b8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Version 2024.11.10 (2024-11-23)

- Add TIME_OF_OPERATION to smoke detector

# Version 2024.11.9 (2024-11-22)

- Make sysvars eventable
Expand Down
3 changes: 2 additions & 1 deletion hahomematic/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import re
from typing import Any, Final, Required, TypedDict

VERSION: Final = "2024.11.9"
VERSION: Final = "2024.11.10"

DEFAULT_CONNECTION_CHECKER_INTERVAL: Final = 15 # check if connection is available via rpc ping
DEFAULT_CUSTOM_ID: Final = "custom_id"
Expand Down Expand Up @@ -363,6 +363,7 @@ class Parameter(StrEnum):
TEMPERATURE_MAXIMUM = "TEMPERATURE_MAXIMUM"
TEMPERATURE_MINIMUM = "TEMPERATURE_MINIMUM"
TEMPERATURE_OFFSET = "TEMPERATURE_OFFSET"
TIME_OF_OPERATION = "TIME_OF_OPERATION"
UN_REACH = "UNREACH"
UPDATE_PENDING = "UPDATE_PENDING"
VALVE_STATE = "VALVE_STATE"
Expand Down
3 changes: 3 additions & 0 deletions hahomematic/model/custom/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@
Field.SMOKE_DETECTOR_ALARM_STATUS: Parameter.SMOKE_DETECTOR_ALARM_STATUS,
},
},
CDPD.ADDITIONAL_DPS: {
0: (Parameter.TIME_OF_OPERATION,),
},
},
DeviceProfile.IP_THERMOSTAT: {
CDPD.DEVICE_GROUP: {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_central_pydevccu.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async def test_central_full(central_unit_full) -> None:
) as fptr:
fptr.write(orjson.dumps(addresses, option=orjson.OPT_INDENT_2 | orjson.OPT_NON_STR_KEYS))

assert usage_types[DataPointUsage.NO_CREATE] == 3172
assert usage_types[DataPointUsage.NO_CREATE] == 3173
assert usage_types[DataPointUsage.CDP_PRIMARY] == 208
assert usage_types[DataPointUsage.DATA_POINT] == 3638
assert usage_types[DataPointUsage.CDP_VISIBLE] == 125
Expand Down

0 comments on commit 80b67b8

Please sign in to comment.