Skip to content

Commit 7c09535

Browse files
committedMar 7, 2025·
(simatec) Fix Post Update
1 parent be38cb9 commit 7c09535

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed
 

‎README.md

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ You must enter these in the configuration of the adapter.
5454

5555
## Changelog
5656
<!-- ### **WORK IN PROGRESS** -->
57+
### **WORK IN PROGRESS**
58+
* (simatec) Fix Post Update
59+
5760
### 1.0.2 (2025-03-06)
5861
* (simatec) Code Fix
5962
* (simatec) eslint Fix

‎build/main.js

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎build/main.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/main.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class RemehaHomeAdapter extends utils.Adapter {
7777
private async onStateChange(id: string, state: ioBroker.State | null | undefined): Promise<void> {
7878
if (state && !this.getUpdate) {
7979
if (id === `${this.namespace}.data.roomThermostat.setPoint`) {
80-
this.postUpdate = false;
80+
this.postUpdate = true;
8181

8282
if (!state?.ack) {
8383
await this.setState('data.roomThermostat.setPoint', { val: state?.val, ack: true });
@@ -90,7 +90,7 @@ class RemehaHomeAdapter extends utils.Adapter {
9090
}
9191

9292
if (id === `${this.namespace}.data.roomThermostat.setZoneMode`) {
93-
this.postUpdate = false;
93+
this.postUpdate = true;
9494

9595
if (!state?.ack) {
9696
await this.setState('data.roomThermostat.setZoneMode', { val: state?.val, ack: true });
@@ -117,7 +117,7 @@ class RemehaHomeAdapter extends utils.Adapter {
117117
}
118118

119119
if (id === `${this.namespace}.data.roomThermostat.firePlaceModeActive`) {
120-
this.postUpdate = false;
120+
this.postUpdate = true;
121121

122122
if (!state?.ack) {
123123
await this.setState('data.roomThermostat.firePlaceModeActive', { val: state?.val, ack: true });
@@ -888,11 +888,11 @@ class RemehaHomeAdapter extends utils.Adapter {
888888

889889
await this.sleep(5000);
890890

891-
this.postUpdate = true;
891+
this.postUpdate = false;
892892

893893
await this.updateDevices();
894894
} catch (getError) {
895-
this.postUpdate = true;
895+
this.postUpdate = false;
896896
this.log.error(`Error making GET request: ${getError}`);
897897
}
898898
}

0 commit comments

Comments
 (0)
Please sign in to comment.