Skip to content

Commit

Permalink
send thermostat temperature range to GH
Browse files Browse the repository at this point in the history
  • Loading branch information
KipK committed Oct 24, 2024
1 parent 3347603 commit 8e2bffa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/class/gsh_TemperatureSetting.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public static function discover($_device,$_eqLogic){
$return['attributes']['availableThermostatModes'] = 'heat';
$return['attributes']['thermostatTemperatureUnit'] = 'C';
$return['customData']['TemperatureSetting_cmdSetThermostat'] = $cmd->getId();
$return['attributes']['thermostatTemperatureRange'] = array(
'minThresholdCelsius' => intval($cmd->getConfiguration('minValue',0)),
'maxThresholdCelsius' => intval($cmd->getConfiguration('maxValue',40))
);
}
if (in_array($cmd->getGeneric_type(), array('THERMOSTAT_STATE_NAME'))) {
$return['customData']['TemperatureSetting_cmdGetState'] = $cmd->getId();
Expand Down

0 comments on commit 8e2bffa

Please sign in to comment.