@@ -77,7 +77,7 @@ class RemehaHomeAdapter extends utils.Adapter {
77
77
private async onStateChange ( id : string , state : ioBroker . State | null | undefined ) : Promise < void > {
78
78
if ( state && ! this . getUpdate ) {
79
79
if ( id === `${ this . namespace } .data.roomThermostat.setPoint` ) {
80
- this . postUpdate = false ;
80
+ this . postUpdate = true ;
81
81
82
82
if ( ! state ?. ack ) {
83
83
await this . setState ( 'data.roomThermostat.setPoint' , { val : state ?. val , ack : true } ) ;
@@ -90,7 +90,7 @@ class RemehaHomeAdapter extends utils.Adapter {
90
90
}
91
91
92
92
if ( id === `${ this . namespace } .data.roomThermostat.setZoneMode` ) {
93
- this . postUpdate = false ;
93
+ this . postUpdate = true ;
94
94
95
95
if ( ! state ?. ack ) {
96
96
await this . setState ( 'data.roomThermostat.setZoneMode' , { val : state ?. val , ack : true } ) ;
@@ -117,7 +117,7 @@ class RemehaHomeAdapter extends utils.Adapter {
117
117
}
118
118
119
119
if ( id === `${ this . namespace } .data.roomThermostat.firePlaceModeActive` ) {
120
- this . postUpdate = false ;
120
+ this . postUpdate = true ;
121
121
122
122
if ( ! state ?. ack ) {
123
123
await this . setState ( 'data.roomThermostat.firePlaceModeActive' , { val : state ?. val , ack : true } ) ;
@@ -888,11 +888,11 @@ class RemehaHomeAdapter extends utils.Adapter {
888
888
889
889
await this . sleep ( 5000 ) ;
890
890
891
- this . postUpdate = true ;
891
+ this . postUpdate = false ;
892
892
893
893
await this . updateDevices ( ) ;
894
894
} catch ( getError ) {
895
- this . postUpdate = true ;
895
+ this . postUpdate = false ;
896
896
this . log . error ( `Error making GET request: ${ getError } ` ) ;
897
897
}
898
898
}
0 commit comments