Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG_LATEST.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ A full list of breaking changes can be found in this [discussion](https://github
- new Dashboard in the Web UI, a guided way into all values and settings of all devices, shown at `/dashboard` (still the start page). It starts with Home: tiles for the heating circuits, hot water, boiler, solar, heat pump, ventilation, sensors, custom entities and notes. Target temperatures and operating modes can be changed directly on the tiles, and each tile has an icon that leads to its page. A menu on the left leads to the pages Heating circuits, Hot water, the boiler and the other parts of the system, Thermostat, Maintenance & faults (with cards for the last fault, the controller fault, the service code and the maintenance), Energy, Custom entities and Sensors, each with its tile on top, a search that stays visible while scrolling and finds values, sensors, scheduler entries, custom entities and commands, and a link to the Devices page. Favorites have their own page. The names, units and ranges come from the firmware, so it works for every device, and values that aren't known yet are listed automatically. Changes are collected and saved together
- the Dashboard menu shows the values of a page at two levels, Normal and All values, switched for all pages at once. Administrators can move a single value between them with the eye icon (in All values only the values they moved have it, to bring them back), and a message says where it went and can be undone; the choice is kept on the device in `/viewlevels.json`, so it is the same in every browser. It is sent and read with `/rest/viewLevels`. The favorites page has no levels; a star sets the same favorite flag as on the Devices page
- CV200: Recognize the CV200 as a ventilation controller, publish its date and time, and correct an invalid or drifting controller clock using NTP.
- MV200 ventilation module (tested on a Bosch 5000c): Add writable `nominalairflow` in m³/h. Add writable bypass thresholds: `bypassminoutdoortemp` and `bypassmaxsupplytemp`. `ventmode` now reports automatic levels (`autoL0` - `autoL4`, `autodemand`). Changes sent through EMS-ESP may be overwritten by the connected controller, which continues to send its own setting.
- MV200 ventilation module (tested on a Bosch 5000c): Add writable `nominalairflow` in m³/h, bypass thresholds `bypassminoutdoortemp` and `bypassmaxsupplytemp`. `ventmode` now reports automatic levels (`autoL0` - `autoL4`, `autodemand`). Changes sent through EMS-ESP may be overwritten by the connected controller, which continues to send its own setting. Control settings `humiditycontrol` (drying/normal/humid) and `airqualitycontrol` (adequate/normal/high).
- MV200 ventilation module: add read-only `operatingtime` and `filterremainingtime` in minutes, inferred from a Bosch 5000c's bus logs and controller display.


## Fixed
Expand Down
2 changes: 2 additions & 0 deletions src/core/locale_common.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ MAKE_ENUM(enum_bufConfig, FL_(off), FL_(monovalent), FL_(bivalent))
MAKE_ENUM(enum_blockTerm, FL_(n_o), FL_(n_c))

// Ventilation
MAKE_ENUM(enum_ventHumidityControl, FL_(ventDrying), FL_(normal), FL_(ventHumid))
MAKE_ENUM(enum_ventAirQualityControl, FL_(ventAdequate), FL_(normal), FL_(high))
// autoL0..autodemand must stay at the end, see Ventilation::VENTMODE_AUTOL0
MAKE_ENUM(enum_ventMode, FL_(auto), FL_(off), FL_(L1), FL_(L2), FL_(L3), FL_(L4), FL_(demand), FL_(sleep), FL_(intense), FL_(bypass), FL_(partymode), FL_(fireplace), FL_(autoL0), FL_(autoL1), FL_(autoL2), FL_(autoL3), FL_(autoL4), FL_(autodemand))

Expand Down
7 changes: 7 additions & 0 deletions src/core/locale_translations.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ MAKE_WORD_TRANSLATION(intense, "intense", "Intensiv", "intensief", "intensiv", "
MAKE_WORD_TRANSLATION(sleep, "sleep", "Einschlafen", "slaapmodus", "sova", "sen", "sove", "sommeil", "uyku", "notturno", "spiace", "spánek", "alvás", "睡眠")
MAKE_WORD_TRANSLATION(partymode, "party", "Party", "party", "party", "impreza", "fest", "fête", "parti", "festa", "párty režim", "párty", "parti", "聚会")
MAKE_WORD_TRANSLATION(fireplace, "fireplace", "Kamin", "haard", "Kamin", "kominek", "peis", "cheminée", "şömine", "camino", "krb", "krb", "kandalló", "壁炉")
MAKE_WORD_TRANSLATION(ventDrying, "drying", "Trocknen", "drogen", "torkning", "suszenie", "tørking", "séchage", "kurutma", "asciugatura", "sušenie", "sušení", "szárítás", "干燥")
MAKE_WORD_TRANSLATION(ventHumid, "humid", "feucht", "vochtig", "fuktig", "wilgotno", "fuktig", "humide", "nemli", "umido", "vlhko", "vlhko", "nedves", "潮湿")
MAKE_WORD_TRANSLATION(ventAdequate, "adequate", "ausreichend", "voldoende", "tillräcklig", "wystarczająca", "tilstrekkelig", "adéquate", "yeterli", "adeguata", "dostatočná", "dostatečná", "megfelelő", "适当")

// SRC plus
MAKE_WORD_TRANSLATION(chefhat, "mdi:chef-hat", "mdi:chef-hat")
Expand Down Expand Up @@ -1018,6 +1021,10 @@ MAKE_TRANSLATION(level4Pct, "level4pct", "level L4", "Stufe L4", "niveau L4*", "
MAKE_TRANSLATION(bypassMinOutdoorTemp, "bypassminoutdoortemp", "bypass minimum outdoor temperature", "Bypass minimale Außentemperatur", "Bypass minimale buitentemperatuur", "Bypass min utomhustemperatur", "obejście minimalna temperatura zewnętrzna", "bypass minimal utetemperatur", "température extérieure minimale bypass", "baypas minimum dış ortam sıcaklığı", "temperatura esterna minima bypass", "bypass minimálna vonkajšia teplota", "bypass minimální venkovní teplota", "bypass minimális külső hőmérséklet", "旁通最低室外温度")
MAKE_TRANSLATION(bypassMaxSupplyTemp, "bypassmaxsupplytemp", "bypass maximum supply air temperature", "Bypass maximale Zulufttemperatur", "Bypass maximale toevoerluchttemperatuur", "Bypass max tillufttemperatur", "obejście maksymalna temperatura powietrza nawiewnego", "bypass maks tilførselslufttemperatur", "température maximale d'air soufflé bypass", "baypas maksimum taze hava sıcaklığı", "temperatura massima aria in mandata bypass", "bypass maximálna teplota dodávaného vzduchu", "bypass maximální teplota dodávaného vzduchu", "bypass maximális befújt levegő hőmérséklet", "旁通最高送风温度")
MAKE_TRANSLATION(airflowNom, "nominalairflow", "nominal airflow (m³/h)", "Nennluftstrom (m³/h)", "nominaal luchtdebiet (m³/h)", "nominellt luftflöde (m³/h)", "nominalny przepływ powietrza (m³/h)", "nominell luftmengde (m³/h)", "débit d'air nominal (m³/h)", "nominal hava debisi (m³/h)", "portata d'aria nominale (m³/h)", "menovitý prietok vzduchu (m³/h)", "jmenovitý průtok vzduchu (m³/h)", "névleges légáram (m³/h)", "额定风量 (m³/h)")
MAKE_TRANSLATION(ventHumidityControl, "humiditycontrol", "humidity control", "Feuchteregelung", "vochtigheidsregeling", "fuktreglering", "regulacja wilgotności", "fuktighetsregulering", "régulation de l'humidité", "nem kontrolü", "controllo umidità", "regulácia vlhkosti", "regulace vlhkosti", "páratartalom szabályozása", "湿度控制")
MAKE_TRANSLATION(ventAirQualityControl, "airqualitycontrol", "air quality control", "Luftqualitätsregelung", "luchtkwaliteitsregeling", "luftkvalitetsreglering", "regulacja jakości powietrza", "luftkvalitetsregulering", "régulation de la qualité de l'air", "hava kalitesi kontrolü", "controllo qualità dell'aria", "regulácia kvality vzduchu", "regulace kvality vzduchu", "levegőminőség szabályozása", "空气质量控制")
MAKE_TRANSLATION(ventOperatingTime, "operatingtime", "operating time", "Betriebszeit", "bedrijfstijd", "drifttid", "czas pracy", "driftstid", "durée de fonctionnement", "çalışma süresi", "tempo di funzionamento", "prevádzkový čas", "provozní doba", "működési idő", "运行时间")
MAKE_TRANSLATION(ventFilterRemainingTime, "filterremainingtime", "filter remaining time", "Filterrestlaufzeit", "resterende filtertijd", "återstående filtertid", "pozostały czas filtra", "gjenværende filtertid", "durée restante du filtre", "kalan filtre süresi", "tempo residuo filtro", "zostávajúci čas filtra", "zbývající čas filtru", "szűrő hátralévő ideje", "过滤器剩余时间")
MAKE_TRANSLATION(autoL0, "autol0", "auto off", "Automatik aus", "automatisch uit", "auto av", "auto wyłączone", "auto av", "auto désactivé", "otomatik kapalı", "auto spento", "automaticky vypnuté", "automaticky vypnuto", "automatikus kikapcsolva", "自动关闭")
MAKE_TRANSLATION(autoL1, "autol1", "auto L1", "Automatik L1", "automatisch L1", "automatisk L1", "automatyczny L1", "automatisk L1", "automatique L1", "otomatik L1", "automatico L1", "automatický L1", "automatický L1", "automatikus L1", "自动 L1")
MAKE_TRANSLATION(autoL2, "autol2", "auto L2", "Automatik L2", "automatisch L2", "automatisk L2", "automatyczny L2", "automatisk L2", "automatique L2", "otomatik L2", "automatico L2", "automatický L2", "automatický L2", "automatikus L2", "自动 L2")
Expand Down
36 changes: 35 additions & 1 deletion src/devices/ventilation.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Ventilation::Ventilation(uint8_t device_type, uint8_t device_id, uint8_t product
register_telegram_type(0x56B, "VentilationMode", true, MAKE_PF_CB(process_ModeMessage), 1);
register_telegram_type(0x589, "VentilationAutoLevel", true, MAKE_PF_CB(process_AutoLevelMessage), 2);
register_telegram_type(0x585, "Blowerspeed", false, MAKE_PF_CB(process_BlowerMessage));
register_telegram_type(0x58D, "VentilationOperatingTime", false, MAKE_PF_CB(process_OperatingTimeMessage));
register_telegram_type(0x583, "VentilationMonitor", false, MAKE_PF_CB(process_MonitorMessage));
register_telegram_type(0x5D9, "Airquality", false, MAKE_PF_CB(process_VOCMessage));
register_telegram_type(0x587, "Bypass", false, MAKE_PF_CB(process_BypassMessage));
Expand All @@ -47,10 +48,14 @@ Ventilation::Ventilation(uint8_t device_type, uint8_t device_id, uint8_t product
register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &inEx_, DeviceValueType::INT16, DeviceValueNumOp::DV_NUMOP_DIV10, FL_(inEx), DeviceValueUOM::DEGREES);
register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &ventInSpeed_, DeviceValueType::UINT8, FL_(ventInSpeed), DeviceValueUOM::PERCENT);
register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &ventOutSpeed_, DeviceValueType::UINT8, FL_(ventOutSpeed), DeviceValueUOM::PERCENT);
register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &operatingTime_, DeviceValueType::TIME, FL_(ventOperatingTime), DeviceValueUOM::MINUTES);
register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &filterRemainingTime_, DeviceValueType::UINT32, FL_(ventFilterRemainingTime), DeviceValueUOM::MINUTES);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

best use DeviceValueType::TIME like operatingTime_, that way it'll be rendered correctly in HA

register_device_value(
DeviceValueTAG::TAG_DEVICE_DATA, &mode_, DeviceValueType::ENUM, FL_(enum_ventMode), FL_(ventMode), DeviceValueUOM::NONE, MAKE_CF_CB(set_ventMode));
register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &voc_, DeviceValueType::UINT16, FL_(airquality), DeviceValueUOM::NONE);
register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &humidity_, DeviceValueType::UINT8, FL_(airHumidity), DeviceValueUOM::PERCENT);
register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &humidityControl_, DeviceValueType::ENUM, FL_(enum_ventHumidityControl), FL_(ventHumidityControl), DeviceValueUOM::NONE, MAKE_CF_CB(set_humidityControl));
register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &airQualityControl_, DeviceValueType::ENUM, FL_(enum_ventAirQualityControl), FL_(ventAirQualityControl), DeviceValueUOM::NONE, MAKE_CF_CB(set_airQualityControl));
register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &bypass_, DeviceValueType::BOOL, FL_(airbypass), DeviceValueUOM::NONE, MAKE_CF_CB(set_bypass));
register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &ventOutRpm_, DeviceValueType::UINT16, FL_(ventOutRpm), DeviceValueUOM::NONE);
register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &ventInRpm_, DeviceValueType::UINT16, FL_(ventInRpm), DeviceValueUOM::NONE);
Expand Down Expand Up @@ -149,6 +154,13 @@ void Ventilation::process_MonitorMessage(const std::shared_ptr<const Telegram> &
void Ventilation::process_BlowerMessage(const std::shared_ptr<const Telegram> & telegram) {
has_update(telegram, ventOutSpeed_, 0);
has_update(telegram, ventInSpeed_, 1);
// Remaining filter time in minutes at offset 6, inferred from Bosch 5000c (MV200) logs.
has_update(telegram, filterRemainingTime_, 6);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be ,3 - uint24 is 4 bytes

}

// Operating time in minutes at offset 0, inferred from Bosch 5000c (MV200) logs.
void Ventilation::process_OperatingTimeMessage(const std::shared_ptr<const Telegram> & telegram) {
has_update(telegram, operatingTime_, 0);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be ,3 - uint24 is 4 bytes

}

// message 0x05D9, data: 03 9C FF
Expand Down Expand Up @@ -200,8 +212,10 @@ void Ventilation::process_BalanceMessage(const std::shared_ptr<const Telegram> &
has_update(telegram, ventBalance_, 8);
}

// message 0x0561 — level percentages (L3 is fixed at 100 %)
// message 0x0561 — control settings and level percentages (L3 is fixed at 100 %)
void Ventilation::process_LevelMessage(const std::shared_ptr<const Telegram> & telegram) {
has_enumupdate(telegram, humidityControl_, 3);
has_enumupdate(telegram, airQualityControl_, 10);
has_update(telegram, level4Pct_, 13);
has_update(telegram, level1Pct_, 14);
has_update(telegram, level2Pct_, 15);
Expand Down Expand Up @@ -257,6 +271,26 @@ bool Ventilation::set_ventBalance(const char * value, const int8_t id) {
return true;
}

bool Ventilation::set_humidityControl(const char * value, const int8_t id) {
uint8_t v;
if (!Helpers::value2enum(value, v, FL_(enum_ventHumidityControl))) {
return false;
}

write_command(0x561, 3, v, 0x561);
return true;
}

bool Ventilation::set_airQualityControl(const char * value, const int8_t id) {
uint8_t v;
if (!Helpers::value2enum(value, v, FL_(enum_ventAirQualityControl))) {
return false;
}

write_command(0x561, 10, v, 0x561);
return true;
}

bool Ventilation::set_level1Pct(const char * value, const int8_t id) {
int v;
if (!Helpers::value2number(value, v)) {
Expand Down
7 changes: 7 additions & 0 deletions src/devices/ventilation.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,20 @@ class Ventilation : public EMSdevice {
uint8_t level1Pct_;
uint8_t level2Pct_;
uint8_t level4Pct_;
uint8_t humidityControl_ = EMS_VALUE_UINT8_NOTSET;
uint8_t airQualityControl_ = EMS_VALUE_UINT8_NOTSET;
uint8_t bypassMinOutdoorTemp_ = EMS_VALUE_UINT8_NOTSET;
uint8_t bypassMaxSupplyTemp_ = EMS_VALUE_UINT8_NOTSET;
uint16_t airflowNominal_ = EMS_VALUE_UINT16_NOTSET; // nominal airflow in m³/h (0x557)
uint32_t operatingTime_ = EMS_VALUE_UINT24_NOTSET;
uint32_t filterRemainingTime_ = EMS_VALUE_UINT24_NOTSET;

// handlers: 0x0556 0x055C 0x0561 0x056B 0x0575 0x0583 0x0585 0x0586 0x0587 0x0588 0x058D 0x058E 0x058F 0x0590 0x05CF 0x05D9 0x05E3
void process_SetMessage(const std::shared_ptr<const Telegram> & telegram); // 0x55C
void process_MonitorMessage(const std::shared_ptr<const Telegram> & telegram); // 0x583
void process_ModeMessage(const std::shared_ptr<const Telegram> & telegram); // 0x56B
void process_BlowerMessage(const std::shared_ptr<const Telegram> & telegram); // 0x585
void process_OperatingTimeMessage(const std::shared_ptr<const Telegram> & telegram); // 0x58D
void process_VOCMessage(const std::shared_ptr<const Telegram> & telegram); // 0x5D9
void process_BypassMessage(const std::shared_ptr<const Telegram> & telegram); // 0x587
void process_BalanceMessage(const std::shared_ptr<const Telegram> & telegram); // 0x556
Expand All @@ -73,6 +78,8 @@ class Ventilation : public EMSdevice {
bool set_bypassMaxSupplyTemp(const char * value, const int8_t id);
bool set_filter(const char * value, const int8_t id);
bool set_ventBalance(const char * value, const int8_t id);
bool set_humidityControl(const char * value, const int8_t id);
bool set_airQualityControl(const char * value, const int8_t id);
bool set_level1Pct(const char * value, const int8_t id);
bool set_level2Pct(const char * value, const int8_t id);
bool set_level4Pct(const char * value, const int8_t id);
Expand Down