Skip to content

Commit

Permalink
Update netatmo_energy.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Feb 5, 2024
1 parent e116fae commit 04e7b4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/class/netatmo_energy.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ public static function refresh($homesdata = null){
public static function execCmd($_cmd,$_options = array()){
$eqLogic = $_cmd->getEqLogic();
if($_cmd->getLogicalId() == 'setpoint'){
if($eqLogic->getConfiguration('device') == 'OTM'){
if($eqLogic->getConfiguration('bridge_type') == 'OTH'){
netatmo::request('/setstate ',array(
'home' => array(
'id' => $eqLogic->getConfiguration('home_id'),
'rooms' => array(
array(
'id' => $eqLogic->getLogicalId(),
'therm_setpoint_mode' => 'manual',
'therm_setpoint_temperature' => (int) $_options['slider'],
'therm_setpoint_temperature' => intval($_options['slider']),
)
)
)
Expand All @@ -205,14 +205,14 @@ public static function execCmd($_cmd,$_options = array()){
),'POST');
}
}else if($_cmd->getLogicalId() == 'mode_auto'){
if($eqLogic->getConfiguration('device') == 'OTM'){
if($eqLogic->getConfiguration('bridge_type') == 'OTH'){
netatmo::request('/setstate ',array(
'home' => array(
'id' => $eqLogic->getConfiguration('home_id'),
'rooms' => array(
array(
'id' => $eqLogic->getLogicalId(),
'therm_setpoint_mode' => 'mode'
'therm_setpoint_mode' => 'home'
)
)
)
Expand Down

0 comments on commit 04e7b4a

Please sign in to comment.