emsesp / EMS-ESP

ESP8266 firmware to read and control EMS and Heatronic compatible equipment such as boilers, thermostats, solar modules, and heat pumps
https://emsesp.github.io/docs
GNU Lesser General Public License v3.0
302 stars 96 forks source link

HeatingActive and tapwaterActive not reported through MQTT #247

Closed balk77 closed 4 years ago

balk77 commented 4 years ago

Bug description home/ems-esp/boiler_data does not publish HeatingActive and tapwaterActive in its MQTT topic. The actual topic:

{"wWComfort":"Intelligent","wWSelTemp":60,"wWDesiredTemp":70,"selFlowTemp":5,"selBurnPow":0,"curBurnPow":0,"pumpMod":0,"wWCircPump":0,"wWCurTmp":36.5,"wWCurFlow":0,"curFlowTemp":43.8,"retTemp":42.9,"switchTemp":0,"sysPress":1.5,"boilTemp":45.5,"wWActivated":"on","burnGas":"off","flameCurr":0,"heatPmp":"off","fanWork":"off","ignWork":"off","wWCirc":"off","heating_temp":65,"pump_mod_max":75,"pump_mod_min":40,"wWHeat":"on","wWStarts":16766,"wWWorkM":23038,"UBAuptime":1817107,"burnStarts":30158,"burnWorkMin":216725,"heatWorkMin":193687,"ServiceCode":"0H","ServiceCodeNumber":203}

Steps to reproduce I did a restart of the device and it did not help

Expected behavior HeatingActive and tapwaterActive to be part of the JSON, as per documentation

see row 23 and 28 of https://github.com/proddy/EMS-ESP/blob/master/doc/home%20assistant/sensor.yaml

Device information

ESP8266 System stats:

 [APP] EMS-ESP version: 1.9.3
 [APP] MyESP version: 1.2.12
 [APP] Build timestamp: 2019-10-26 12:06:48
 [APP] Uptime: 0 days 0 hours 1 minute 49 seconds
 [APP] System Load: 0%
 [WIFI] WiFi Hostname: ems-esp
 [WIFI] WiFi IP: 192.168.0.49
 [WIFI] WiFi signal strength: 100%
 [WIFI] WiFi MAC: xxxxx
 [MQTT] is connected (heartbeat enabled)
 [NTP] Time in UTC is 22:03:45
 [SYSTEM] System is Stable
 [SYSTEM] Board: PLATFORMIO_D1_MINI
 [SYSTEM] CPU frequency: 80 MHz
 [SYSTEM] SDK version: 2.2.1(cfd48f3)
 [SYSTEM] CPU chip ID: 0x8A8AFD
 [SYSTEM] Core version: 2_5_2
 [SYSTEM] Boot version: 31
 [SYSTEM] Boot mode: 1
 [SYSTEM] Last reset reason: Restart from terminal
 [SYSTEM] Restart count: 0
 [SYSTEM] # TCP disconnects: 0
 [SYSTEM] rtcmem status: blocks:2 addr:0x60001280
 [SYSTEM] rtcmem 00: 1163087990
 [SYSTEM] rtcmem 01: 65536
 [FLASH] Flash chip ID: 0x1640EF
 [FLASH] Flash speed: 40000000 Hz
 [FLASH] Flash mode: DIO
 [FLASH] Flash size (CHIP): 4194304
 [FLASH] Flash size (SDK): 4194304
 [FLASH] Flash Reserved: 4096
 [MEM] Firmware size: 628960
 [MEM] Max OTA size: 2510848
 [MEM] OTA Reserved: 16384
 [MEM] Free Heap: 26696 bytes initially | 10704 bytes used (40%) | 15992 bytes free (59%)
EMS-ESP system stats:
  System logging set to None
  LED is on, Listen mode is off
  Boiler is enabled, Thermostat is enabled, Solar Module is disabled, Mixing Module is disabled, Shower Timer is disabled, Shower Alert is disabled

EMS Bus stats:
  Bus is connected, protocol: Buderus
  Rx: # successful read requests=25, # CRC errors=0
  Tx: Last poll=3.974 seconds ago, # successful write requests=0

Boiler stats:
  Boiler: Buderus GBx72/Nefit Trendline/Junkers Cerapur/Worcester Greenstar Si (ProductID:123 Version:06.07)
  Hot tap water: off
  Central heating: off
  Warm Water activated: on
  Warm Water circulation pump available: off
  Warm Water comfort setting: Intelligent
  Warm Water selected temperature: 60 C
  Warm Water desired temperature: 70 C
  Warm Water current temperature: 36.7 C
  Warm Water current tap water flow: 0.0 l/min
  Warm Water # starts: 16766 times
  Warm Water active time: 15 days 23 hours 58 minutes
  Warm Water 3-way valve: on
  Selected flow temperature: 5 C
  Current flow temperature: 43.9 C
  Return temperature: 42.9 C
  Gas: off
  Boiler pump: off
  Fan: off
  Ignition: off
  Circulation pump: off
  Burner selected max power: 0 %
  Burner current power: 0 %
  Flame current: 0.0 uA
  System pressure: 1.5 bar
  System service code: 0H (203)
  Heating temperature setting on the boiler: 65 C
  Boiler circuit pump modulation max power: 75 %
  Boiler circuit pump modulation min power: 40 %
  Boiler temperature: 45.5 C
  Pump modulation: 0 %
  Burner # starts: 30158 times
  Total burner operating time: 150 days 12 hours 5 minutes
  Total heat operating time: 134 days 12 hours 7 minutes
  Total UBA working time: 1261 days 21 hours 7 minutes

Thermostat stats:
  Thermostat: Logamatic TC100/Nefit Moduline Easy (ProductID:202 Version:02.19)
  Heating Circuit 1
   Current room temperature: 20.20 C
   Setpoint room temperature: 15.0 C
   Mode is unknown
proddy commented 4 years ago

those two boolean variables are actually sent as separate MQTT topics called home/ems-esp/tapwater_active and home/ems-esp/heating_active and not in the boiler_data payload since they act as on/off switches. If you type mqttlog you should see them pop up in the Telnet.

For HA they are defined in the file binary_sensor.yaml. They were indeed duplicated in the sensors.yaml file which I've fixed now.