You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ``MatterTemperatureControlledCabinet`` class provides a temperature controlled cabinet endpoint for Matter networks. This endpoint implements the Matter temperature control standard for managing temperature setpoints with min/max limits, optional step control, or temperature level support.
8
+
The ``MatterTemperatureControlledCabinet`` class provides a temperature controlled cabinet endpoint for Matter networks. This endpoint implements the Matter temperature control standard for managing temperature setpoints with min/max limits, step control (always enabled), or temperature level support.
9
9
10
10
**Important:** The ``temperature_number`` and ``temperature_level`` features are **mutually exclusive**. Only one can be enabled at a time. Use ``begin(tempSetpoint, minTemp, maxTemp, step)`` for temperature_number mode or ``begin(supportedLevels, levelCount, selectedLevel)`` for temperature_level mode.
11
11
12
12
**Features:**
13
13
* Two initialization modes:
14
-
* **Temperature Number Mode** (``begin(tempSetpoint, minTemp, maxTemp, step)``): Temperature setpoint control with min/max limits and optional step
14
+
* **Temperature Number Mode** (``begin(tempSetpoint, minTemp, maxTemp, step)``): Temperature setpoint control with min/max limits and step control (step value can be set in begin() or later)
15
15
* **Temperature Level Mode** (``begin(supportedLevels, levelCount, selectedLevel)``): Temperature level control with array of supported levels
* Min/max temperature limits with validation (temperature_number mode)
18
-
* Optional temperature step control (temperature_number mode)
18
+
* Temperature step control (temperature_number mode, always enabled)
19
19
* Temperature level array support (temperature_level mode)
20
20
* Automatic setpoint validation against limits
21
21
* Feature validation - methods return errors if called with wrong feature mode
@@ -62,11 +62,11 @@ Initializes the Matter temperature controlled cabinet endpoint with **temperatur
62
62
* ``tempSetpoint`` - Initial temperature setpoint in Celsius (default: 0.00)
63
63
* ``minTemperature`` - Minimum allowed temperature in Celsius (default: -10.0)
64
64
* ``maxTemperature`` - Maximum allowed temperature in Celsius (default: 32.0)
65
-
* ``step`` - Temperature step value in Celsius for step control feature (default: 0.50, disabled if 0)
65
+
* ``step`` - Initial temperature step value in Celsius (default: 0.50)
66
66
67
67
This function will return ``true`` if successful, ``false`` otherwise.
68
68
69
-
**Note:** The implementation stores temperature with 1/100th degree Celsius precision internally. If step is greater than 0, the temperature_step feature will be enabled.
69
+
**Note:** The implementation stores temperature with 1/100th degree Celsius precision internally. The temperature_step feature is always enabled for temperature_number mode, allowing ``setStep()`` to be called later even if step is not provided in ``begin()``.
70
70
71
71
begin (overloaded)
72
72
^^^^^^^^^^^^^^^^^^
@@ -182,13 +182,13 @@ Gets the maximum allowed temperature.
182
182
183
183
This function will return the maximum temperature in Celsius with 1/100th degree precision.
184
184
185
-
Temperature Step Control (Optional)
186
-
***********************************
185
+
Temperature Step Control
186
+
*************************
187
187
188
188
setStep
189
189
^^^^^^^
190
190
191
-
Sets the temperature step value. This enables the temperature_step feature.
@@ -200,7 +200,7 @@ Sets the temperature step value. This enables the temperature_step feature.
200
200
201
201
This function will return ``true`` if successful, ``false`` otherwise.
202
202
203
-
**Note:** The temperature_step feature requires the temperature_number feature to be enabled. This method will return ``false`` and log an error if called when using temperature_level mode.
203
+
**Note:** The temperature_step feature is always enabled when using temperature_number mode, so this method can be called at any time to set or change the step value, even if step was not provided in ``begin()``. This method will return ``false`` and log an error if called when using temperature_level mode.
0 commit comments