@@ -55,6 +55,7 @@ class NodeFeature(str, Enum):
5555 RELAY_LOCK = "relay_lock"
5656 SWITCH = "switch"
5757 SENSE = "sense"
58+ SENSE_HYSTERESIS = "sense_hysteresis"
5859 TEMPERATURE = "temperature"
5960
6061
@@ -260,14 +261,6 @@ class EnergyStatistics:
260261 day_production_reset : datetime | None = None
261262
262263
263- @dataclass
264- class SenseStatistics :
265- """Sense statistics collection."""
266-
267- temperature : float | None = None
268- humidity : float | None = None
269-
270-
271264@dataclass (frozen = True )
272265class SenseHysteresisConfig :
273266 """Configuration of sense hysteresis switch.
@@ -289,16 +282,27 @@ class SenseHysteresisConfig:
289282 """
290283
291284 humidity_enabled : bool | None = None
292- humidity_upper_bound : int | None = None
293- humidity_lower_bound : int | None = None
285+ humidity_upper_bound : float | None = None
286+ humidity_lower_bound : float | None = None
294287 humidity_direction : bool | None = None
295288 temperature_enabled : bool | None = None
296- temperature_upper_bound : int | None = None
297- temperature_lower_bound : int | None = None
289+ temperature_upper_bound : float | None = None
290+ temperature_lower_bound : float | None = None
298291 temperature_direction : bool | None = None
299292 dirty : bool = False
300293
301294
295+ @dataclass
296+ class SenseStatistics :
297+ """Sense statistics collection."""
298+
299+ temperature : float | None = None
300+ humidity : float | None = None
301+ temperature_state : bool | None = None
302+ temperature_state : bool | None = None
303+ humidity_state : bool | None = None
304+
305+
302306class PlugwiseNode (Protocol ):
303307 """Protocol definition of a Plugwise device node."""
304308
0 commit comments