Skip to content

Instantly share code, notes, and snippets.

@sanderkob
sanderkob / gist:693cf1c7664d2048fde183263edff221
Created August 14, 2023 07:07
AsyncTelegram2.cpp modified for checking
if (err)
{
log_error("deserializeJson() failed\n");
log_debug("%s", err.c_str());
log_error();
log_error(m_rxbuffer);
// Skip this message id due to the impossibility to parse correctly
m_lastUpdateId = m_rxbuffer.substring(m_rxbuffer.indexOf(F("\"update_id\":")) + strlen("\"update_id\":")).toInt() + 1;
// int64_t chat_id = m_rxbuffer.substring( m_rxbuffer.indexOf("{\"id\":") + strlen("{\"id\":")).toInt();
// Inform the user about parsing error (blocking)
@sanderkob
sanderkob / README.md
Last active October 19, 2023 08:14
itho ventilation control

The flow uses an itho wifi add-on (https://github.com/arjenhiemstra/ithowifi) to control an itho CVE-S ventilation unit. The flow monitors absolute humidity (shower) and presence (toilets) to increase ventilation flow. Ventilation is stopped during the night. When the indoor temperature is above 25°C and the outdoor temperature is cooler ventilation is increased (night cooling). Telegram messages are sent when: the ventilation is high for more than 45 minutes; when actual ventilation differs from setpoint (e.g. because of CO2 control in the itho unit). Many variables are published to a Domoticz client. Interaction with the itho add-on is through web API calls.
Node-RED version 3.1.0
20230321 Added some bug fixes
20231016 Many changes: Shelly Mqttt workaround, RF disable, moved Fritz sleeping room to other flow,