Hello, thank you for the answer and especially for the instructions in the video demonstration!
Very nice and detailed explanation, please put a link to the video in the documentation!
I managed to get the thing going
, and I have a question about the “Subscribe topic” item (.tagoio-mqtt-relay.toml file).
The device sends the following message(s) on each state change (Tasmota flashed device):
topic: stat/123123123/RESULT
payload: {“POWER”:“ON”}
and
topic: stat/123123123/POWER
payload: ON
If I set the topic to: “stat/123123123/#”, the console returns:
[2024-07-11T08:37:49Z INFO mqtt] [Broker] Received message on topic stat/123123123/RESULT
[2024-07-11T08:37:50Z ERROR error] Failed to forward buffered messages to TagoIO: CustomError { status: 400, body: “{\“status\”:false,\“message\”:\“Serial can’ t be found\”}”, message: “Request failed with status: 400 Bad Request” }
[2024-07-11T08:37:50Z ERROR mqtt] Failed to forward message to TagoIO: “Status: 400 Bad Request, Body: {\“status\”:false,\“message\”:\“Serial can’t be found\”}, Message: Request failed with status: 400 Bad Request”
[2024-07-11T08:37:50Z INFO mqtt] [Broker] Received message on topic stat/123123123/POWER
[2024-07-11T08:37:50Z ERROR error] Failed to forward buffered messages to TagoIO: CustomError { status: 400, body: “{\“status\”:false,\“message\”:\“Serial can’ t be found\”}”, message: “Request failed with status: 400 Bad Request” }
[2024-07-11T08:37:50Z ERROR mqtt] Failed to forward message to TagoIO: “Status: 400 Bad Request, Body: {\“status\”:false,\“message\”:\“Serial can’t be found\”}, Message: Request failed with status: 400 Bad Request”
and if I set the topic to: “stat/123123123/RESULT/#” it returns the following message/error:
[2024-07-11T08:40:33Z INFO mqtt] [Broker] Received message on topic stat/123123123/RESULT
[2024-07-11T08:40:33Z ERROR error] Failed to forward buffered messages to TagoIO: CustomError { status: 400, body: “{\“status\”:false,\“message\”:\“Serial can’t be found\”}”, message: “Request failed with status: 400 Bad Request” }
[2024-07-11T08:40:33Z ERROR mqtt] Failed to forward message to TagoIO: “Status: 400 Bad Request, Body: {\“status\”:false,\“message\”:\“Serial can’t be found\”}, Message: Request failed with status: 400 Bad Request”
The question is how to set/use topic(s) after the serial number?
Also another question, is it “normal” that the “Live inspector” does not show activity but data comes to the Bucket?
Thank you for your reply!
Greeting
Marko