tell bot owner if somebody changed state via MQTT

This commit is contained in:
Marcel Walter 2026-02-18 00:23:34 +01:00
parent dd2185216a
commit 61fda5250d

View File

@ -483,6 +483,8 @@ void mqttCallback(char *topic, unsigned char *message, unsigned int length)
{
printClose(MessageString);
}
tele.sendMessage(TELEGRAM_BOT_OWNER, String("Display zeigt \"") + Text + "\" via MQTT");
}
/* if topic is the text topic try deserializing the json text */
@ -490,5 +492,7 @@ void mqttCallback(char *topic, unsigned char *message, unsigned int length)
{
Serial.println("Text topic received: " + MessageString);
printText(MessageString);
tele.sendMessage(TELEGRAM_BOT_OWNER, String("Display zeigt \"") + Text + "\" via MQTT");
}
}