Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Add state updates for mower commands
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Nov 8, 2023
1 parent aa394c3 commit 1860d47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ class Boschindego extends utils.Adapter {
};
const response = await axios.put(requestUrl, params);
this.log.debug('mow res: ' + response.data);
await this.setStateAsync('commands.mow', { val: false, ack: true });
this.clearAlerts();
this.refreshState(false);
} catch (error) {
Expand All @@ -280,6 +281,7 @@ class Boschindego extends utils.Adapter {
};
const response = await axios.put(requestUrl, params);
this.log.debug('returnToDock res: ' + response.data);
await this.setStateAsync('commands.go_home', { val: false, ack: true });
this.clearAlerts();
this.refreshState(false);
} catch (error) {
Expand All @@ -300,6 +302,7 @@ class Boschindego extends utils.Adapter {
};
const response = await axios.put(requestUrl, params);
this.log.debug('pause res: ' + response.data);
await this.setStateAsync('commands.pause', { val: false, ack: true });
this.clearAlerts();
this.refreshState(false);
} catch (error) {
Expand Down

0 comments on commit 1860d47

Please sign in to comment.