Skip to content

Commit 3206367

Browse files
authored
Merge pull request #331 from plugwise/mdi_sense
Expose Sense report interval to HA
2 parents 1a09f24 + 478184a commit 3206367

File tree

7 files changed

+30
-5
lines changed

7 files changed

+30
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## v0.57.0 - 2025-09-12
4+
5+
- Activate new Sense feature, report interval setting via PR [331](https://github.com/plugwise/plugwise_usb-beta/pull/331)
6+
- Link to plugwise_usb [v0.46.0](https://github.com/plugwise/python-plugwise-usb/releases/tag/v0.46.0)
7+
38
## v0.56.0 - 2025-09-03
49

510
- Activate new Sense hysteresis based switch action via PR [326](https://github.com/plugwise/plugwise_usb-beta/pull/326)

custom_components/plugwise_usb/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"iot_class": "local_polling",
1010
"issue_tracker": "https://github.com/plugwise/python-plugwise-usb/issues",
1111
"loggers": ["plugwise_usb"],
12-
"requirements": ["plugwise-usb==0.45.0"],
13-
"version": "0.56.0"
12+
"requirements": ["plugwise-usb==0.46.0"],
13+
"version": "0.57.0"
1414
}

custom_components/plugwise_usb/number.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,19 @@ class PlugwiseNumberEntityDescription(
156156
async_number_type="float",
157157
mode="box",
158158
),
159+
PlugwiseNumberEntityDescription(
160+
key="report_interval",
161+
translation_key="sense_report_interval",
162+
async_number_fn="set_report_interval",
163+
node_feature=NodeFeature.SENSE_HYSTERESIS,
164+
device_class=NumberDeviceClass.DURATION,
165+
native_unit_of_measurement=UnitOfTime.MINUTES,
166+
entity_category=EntityCategory.CONFIG,
167+
native_max_value=60,
168+
native_min_value=1,
169+
native_step=1,
170+
mode="box",
171+
),
159172
)
160173

161174

custom_components/plugwise_usb/strings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@
172172
},
173173
"sense_temperature_lower_bound": {
174174
"name": "Temperature lower boundary value"
175+
},
176+
"sense_report_interval": {
177+
"name": "Measurement reporting interval"
175178
}
176179
},
177180
"button": {

custom_components/plugwise_usb/translations/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@
172172
},
173173
"sense_temperature_lower_bound": {
174174
"name": "Temperature lower boundary value"
175+
},
176+
"sense_report_interval": {
177+
"name": "Measurement reporting interval"
175178
}
176179
},
177180
"button": {

custom_components/plugwise_usb/translations/nl.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@
172172
},
173173
"sense_temperature_lower_bound": {
174174
"name": "Lage schakelpunt temperatuur"
175+
},
176+
"sense_report_interval": {
177+
"name": "Meetrapportage-interval"
175178
}
176179
},
177180
"button": {

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "plugwise_usb-beta"
3-
version = "0.55.13"
3+
version = "0.57.0"
44
description = "Plugwise USB custom_component (BETA)"
55
readme = "README.md"
66
requires-python = ">=3.13"
@@ -544,8 +544,6 @@ ignore = [
544544

545545
"TRY003", # Avoid specifying long messages outside the exception class
546546
"TRY400", # Use `logging.exception` instead of `logging.error`
547-
# Ignored due to performance: https://github.com/charliermarsh/ruff/issues/2923
548-
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
549547

550548
# May conflict with the formatter, https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
551549
"W191",

0 commit comments

Comments
 (0)