Skip to content

Commit

Permalink
Merge pull request #125 from TDCroPower/master
Browse files Browse the repository at this point in the history
isConnected query removed
  • Loading branch information
mcm1957 authored Sep 4, 2023
2 parents 663a0d0 + 3f318ea commit a34bd1f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ sendTo("enigma2.0", "send", {
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->
**WORK IN PROGRESS**
* (TDCroPower) fixed the problem that no objects are updated

### 2.0.2 (2023-08-17)
* (Lucky-ESA) Bugfixes: [#61](https://github.com/Matten-Matten/ioBroker.enigma2/issues/61)
* (Lucky-ESA) Bugfixes: undefined e2eventlist
Expand Down
36 changes: 14 additions & 22 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1294,28 +1294,20 @@ async function main() {
}, 60000 * 30);
*/
eventInterval = setInterval(async () => {
if (isConnected) {
let xml = await getResponseAsync('GETSTANDBY', deviceId, PATH['POWERSTATE']);
await evaluateCommandResponse('GETSTANDBY', deviceId, xml);

xml = await getResponseAsync('MESSAGEANSWER', deviceId, PATH['MESSAGEANSWER']);
await evaluateCommandResponse('MESSAGEANSWER', deviceId, xml);

xml = await getResponseAsync('GETINFO', deviceId, PATH['ABOUT']);
await evaluateCommandResponse('GETINFO', deviceId, xml);

xml = await getResponseAsync('GETVOLUME', deviceId, PATH['VOLUME']);
await evaluateCommandResponse('GETVOLUME', deviceId, xml);

xml = await getResponseAsync('GETCURRENT', deviceId, PATH['GET_CURRENT']);
await evaluateCommandResponse('GETCURRENT', deviceId, xml);

xml = await getResponseAsync('ISRECORD', deviceId, PATH['ISRECORD'],);
await evaluateCommandResponse('ISRECORD', deviceId, xml);

xml = await getResponseAsync('TIMERLIST', deviceId, PATH['TIMERLIST']);
await evaluateCommandResponse('TIMERLIST', deviceId, xml);
}
let xml = await getResponseAsync('GETSTANDBY', deviceId, PATH['POWERSTATE']);
await evaluateCommandResponse('GETSTANDBY', deviceId, xml);
xml = await getResponseAsync('MESSAGEANSWER', deviceId, PATH['MESSAGEANSWER']);
await evaluateCommandResponse('MESSAGEANSWER', deviceId, xml);
xml = await getResponseAsync('GETINFO', deviceId, PATH['ABOUT']);
await evaluateCommandResponse('GETINFO', deviceId, xml);
xml = await getResponseAsync('GETVOLUME', deviceId, PATH['VOLUME']);
await evaluateCommandResponse('GETVOLUME', deviceId, xml);
xml = await getResponseAsync('GETCURRENT', deviceId, PATH['GET_CURRENT']);
await evaluateCommandResponse('GETCURRENT', deviceId, xml);
xml = await getResponseAsync('ISRECORD', deviceId, PATH['ISRECORD'],);
await evaluateCommandResponse('ISRECORD', deviceId, xml);
xml = await getResponseAsync('TIMERLIST', deviceId, PATH['TIMERLIST']);
await evaluateCommandResponse('TIMERLIST', deviceId, xml);
}, adapter.config.PollingInterval);

deviceInfoInterval = setInterval(async () => {
Expand Down

0 comments on commit a34bd1f

Please sign in to comment.