@@ -106,22 +106,43 @@ const SetHeaterModal = ({heater: originalHeater, show, onClose, index}) => {
106106 < Form . Label > Duty</ Form . Label >
107107 < Badge className = 'float-end' > < Number value = { heater . duty } formatFunction = { formatPercentage } decimals = { 1 } /> </ Badge >
108108 < Form . Range min = { 0 } max = { 1 } step = { 0.001 } value = { heater . duty } onChange = { updateHeater ( 'duty' , parseFloat ) } />
109+ { [ 'target_temperature' , 'dewpoint' ] . includes ( heater . mode ) &&
110+ < Form . Text > When ramp is set to a non zero value, and mode is either < code > Dewpoint offset</ code > or < code > Target temperature</ code > ,
111+ this will be a maximum value rather than the real duty.</ Form . Text > }
109112 </ Form . Group >
110113 </ Collapse >
111114 < Collapse in = { heater . mode === 'target_temperature' && originalHeater . has_temperature } >
112115 < Form . Group className = 'mb-3' >
113116 < Form . Label > Target Temperature</ Form . Label >
114117 < Badge className = 'float-end' > < Number value = { heater . target_temperature } unit = '°C' /> </ Badge >
115118 < Form . Range min = { - 20 } max = { 50 } value = { heater . target_temperature } onChange = { updateHeater ( 'target_temperature' , parseFloat ) } />
119+ < Form . Text > When the temperature sensor will reach this temperature, the heater will turn off.</ Form . Text >
116120 </ Form . Group >
117121 </ Collapse >
118122 < Collapse in = { heater . mode === 'dewpoint' && originalHeater . has_temperature } >
119123 < Form . Group className = 'mb-3' >
120124 < Form . Label > Dewpoint Offset</ Form . Label >
121125 < Badge className = 'float-end' > < Number value = { heater . dewpoint_offset } unit = '°C' /> </ Badge >
122126 < Form . Range min = { - 20 } max = { 20 } value = { heater . dewpoint_offset } onChange = { updateHeater ( 'dewpoint_offset' , parseFloat ) } />
127+ < Form . Text >
128+ Offset to the dewpoint temperature (either positive or negative).
129+ For instance, if the dewpoint is < code > 10°C</ code > , and the offset is set to < code > 5°C</ code > , the target temperature will be < code > 15°C</ code > .
130+ </ Form . Text >
123131 </ Form . Group >
124132 </ Collapse >
133+ < Collapse in = { [ 'dewpoint' , 'target_temperature' ] . includes ( heater . mode ) && originalHeater . has_temperature } >
134+ < Form . Group className = 'mb-3' >
135+ < Form . Label > Ramp Offset</ Form . Label >
136+ < Badge className = 'float-end' > < Number value = { heater . ramp_offset || 0 } unit = '°C' /> </ Badge >
137+ < Form . Range min = { 0 } max = { 20 } value = { heater . ramp_offset || 0 } onChange = { updateHeater ( 'ramp_offset' , parseFloat ) } />
138+ < Form . Text >
139+ Set this to a number greater than < code > 0</ code > to start ramping down the duty proportionally to the difference with the target temperature.
140+ For instance, if set to < code > 3°C</ code > , with a target temperature of < code > 25°C</ code > , a current temperature of < code > 24°C</ code >
141+ and a maximum duty of < code > 100%</ code > , the actual duty will be < code > (25-24)/3 = 33%</ code > .
142+ </ Form . Text >
143+ </ Form . Group >
144+
145+ </ Collapse >
125146 </ Form >
126147 </ Modal . Body >
127148 < Modal . Footer >
0 commit comments