Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team
Question
Guest kallecux
Hello! - Happy Easter!
I try to play with the new MQTT-functionality in QA's, but im am not successful.
There i have a MQTT broker on Hassio and this code on HC3:
Please login or register to see this code.
When i save the QA i get this message on HC3:
[13.04.2020] [13:33:33] [DEBUG] [QUICKAPP353]: onConnected: {"sessionPresent":false,"returnCode":0}
The Broker says this:
1586777612: New connection from 192.168.3.116 on port 1883.
[INFO] found hc3 on Home Assistant
1586777613: New client connected from 192.168.3.116 as randomjdtfpexjvy (p2, c0, k0, u'hc3')
So i think everything is OK, but i get no:
- onSubscribeMessage when the QA started
- onPublished Message when i toggle the switch
Is there anybody who can give me a hint?
Thanks in advance.
Karl Heinz
Edited:
When i toggle the QA Switch, the message is transferred to the broker and the other clients (NodeRed-Cient), but the function onPublished is NOT called!
I think the callback / envent is not executed, so i can not get the subscribed data.
Link to comment
Share on other sites
Top Posters For This Question
13
12
7
5
Popular Days
Nov 20
10
Jun 25
6
May 14
4
Apr 16
4
Top Posters For This Question
jgab 13 posts
Firepeet 12 posts
Rait 7 posts
Jamie 5 posts
Popular Days
Nov 20 2021
10 posts
Jun 25 2022
6 posts
May 14 2020
4 posts
Apr 16 2020
4 posts
Popular Posts
10der
.publish != :publish so please replace Please login or register to see this code. Please login or register to see this code.
petergebruers
Your call self.client:subscribe("#") Appears last in the "init" function but... It executes before the client actually connects, so it does not actually subscribe to anything. Wireshark i
jgab
Posted Images
52 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.