Skip to content

Commit

Permalink
ems-esp adjustments for holiday modes
Browse files Browse the repository at this point in the history
  • Loading branch information
tp1de committed Jun 6, 2022
1 parent e29d285 commit d0418a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ https://github.com/tp1de/ioBroker.ems-esp/wiki
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->
### **WORK IN PROGRESS**
* adjustments for ems-esp RC310 holiday modes

### 1.14.0 (2022-05-18)
* split parameters for dallas & analog sensors
* improve warning messages if sensors are missing
Expand Down
3 changes: 3 additions & 0 deletions lib/ems.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,15 @@ async function write_state(statename,value,def) {
if (km200_structure) {
if (array[0] == "thermostat") device = "heatingCircuits";
if (array[0] == "thermostat" && array[1].substring(0,2) == "ww") device = "dhwCircuits";
if (array[0] == "thermostat" && array[1].substring(0,3) == "hm_") device = "system.holidayModes";
if (array[0] == "mixer") device = "heatingCircuits";
if (array[0] == "solar") device = "solarCircuits.sc1";
if (array[0] == "boiler") {
device = "heatSources.hs1";
if (array[1].substring(0,2) == "ww" || array[1].substring(0,2) == "wW" ) device = "dhwCircuits.dhw1";
}
} else {
if (array[0] == "thermostat" && array[1].substring(0,3) == "hm_") device = "thermostat.hm";
}

command = array[1];
Expand Down

0 comments on commit d0418a1

Please sign in to comment.