Replies: 5 comments
-
Something is publishing these MQTT commands to EMS-ESP. EMS-ESP just subscribes and listens, it doesn't call mqtt commands by itself. I think you have them as retained messages so when EMS-ESP starts and subscribes, they start coming in again. |
Beta Was this translation helpful? Give feedback.
-
I will check for retained. |
Beta Was this translation helpful? Give feedback.
-
The commands are issued from node-red workflow within ha. (my heat demand function) |
Beta Was this translation helpful? Give feedback.
-
.... and yes it does not happen without retained flag. |
Beta Was this translation helpful? Give feedback.
-
ideally, you shouldn't persist in published messages. Otherwise, there's no point in having a queue. Our MQTT client library is based on the 3.1.1 protocol and version 5.0 supports more subscription features like "Retain As Published" and "Retain Handling" which we need here. This is not an issue in the s/w (it's been like this for 5 years) so will move this to a discussion while we explorer updating the client. |
Beta Was this translation helpful? Give feedback.
-
On restart of ems-esp gateway old mqtt commands are executed again.
The execution is directly after detection of devices when not all entities are still discoverd.
This leads to errors in log.
Expected behavior: On any re-start old commands should not be executed.
Beta Was this translation helpful? Give feedback.
All reactions