Fixed heat mode display to read the correct pool equipment property

This commit is contained in:
2020-04-08 21:42:49 -05:00
parent 48426cbc3b
commit b69e557e33
2 changed files with 6 additions and 2 deletions

View File

@ -158,12 +158,12 @@ Module.register("MMM-ScreenLogic",{
class: this.config.contentClass
});
} else if (controlObj.type === 'heatmode') {
if (controlObj.body < 0 || controlObj.body > poolData.status.heatStatus.length) {
if (controlObj.body < 0 || controlObj.body > poolData.status.heatMode.length) {
Log.warn('Invalid body specified for heatmode');
continue;
}
var on = poolData.status.heatStatus[controlObj.body] !== 0;
var on = poolData.status.heatMode[controlObj.body] !== 0;
var mode = typeof controlObj.heatMode === 'number' ? controlObj.heatMode : 3;
var cls = '';