Subcribe to v1/devices/me/rpc/request/+ "Thingsboard"

480 views
Skip to first unread message

Zoltan Repcsenyi

unread,
Feb 23, 2022, 10:39:18 AM2/23/22
to TasmotaUsers
Hi 

I new with tasmota I want to connect the tasmota to thingsboard app.
 My first step is to subscribe to the following channel: v1/devices/me/rpc/request/+


I created rules:
I get an answer as follow:
The original from the tasmota description:
15:39:11.497 RUL: MQTT#CONNECTED performs "Subscribe BkLight, stat/me/POWER"
15:39:11.504 MQT: v1/devices/me/stat/RESULT = {"Subscribe":"BKLIGHT,stat/me/POWER/#"}
If I try in this way:
15:39:02.862 CMD: Rule4 ON mqtt#connected DO Subscribe BLKLIGHT, v1/devices/me/rpc/request/+ ENDON
15:39:02.867 RSL: RESULT = {"Command":"Error"}
If I put the BKlight in :
19:27:49.320 RUL: MQTT#CONNECTED performs "Subscribe, v1/devices/me/rpc/request/+"
19:27:49.327 MQT: v1/devices/me/stat/RESULT = {"Subscribe":"Wrong parameters"}
19:27:49.340 RUL: MQTT#CONNECTED performs "Subscribe BkLight, stat/me/POWER"
19:27:49.346 MQT: v1/devices/me/stat/RESULT = {"Subscribe":"BKLIGHT,stat/me/POWER/#"}

 So the response is: subcribe: wrong parameter or command Error

Could anybody tell me how can I subscribe to the  v1/devices/me/rpc/request/+
With Tasmiota rules?

 Thanks in advance.

Zoli

Philip Knowles

unread,
Feb 24, 2022, 1:57:02 AM2/24/22
to Zoltan Repcsenyi, TasmotaUsers
It may be that the issue is the final + in the topic as it's a 'wildcard'. I suspect it will work without the +. Search MQTT subscribe wildcard in the Tasmota issues in GitHub
All Subscribe does is talk to the MQTT broker and subscribe to the topic. If it's successful it allocates an event to the topic to monitor it. Tasmota adds a wildcard of # to its subscriptions so the + is possibly redundant.
The golden rule before doing anything in a rule is to try the command in console first. If it doesn't work then it won't work in a rule.

Regards

Phil K



From: sonof...@googlegroups.com <sonof...@googlegroups.com> on behalf of Zoltan Repcsenyi <repiz...@gmail.com>
Sent: Wednesday, February 23, 2022 3:39:17 PM
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: Subcribe to v1/devices/me/rpc/request/+ "Thingsboard"
 
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/227b9d65-247c-41c5-81b3-a245fddd5fd5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages