So, i am new to MQTT, created my first alarm panel,
i have found this project, followed the setup , all is working ok, i think
so installed an ubuntu , installed that nodejs on it, created a connection to the MQTT server
mqtt server is installed as addon in HA, its working, i can connect with the hivemq to it, green button
so when i start the app, you see in the log, that it sends a message to MQTT, but the state of my alarm is still unknown, so maybe there is a state issue
next test, is the other way around, so in HA i do a test call service to arm/disarm , but i dont see that message coming in the app lg on ubuntu
so there is something wrong, but i dont know where to look or how to troubleshoot
I would recommend you read a mqtt basics tutorial. Maybe this one.
But in short; A MQTT topic is a way off ordering your messages on a MQTT network.
Example:
If you have a mqtt light it can post and recieve messages on topic “homeassistant/lights/”
And a lock on topic “homeassistant/locks/”
If you subscribe (mqtt term for only view messages on a specific topic) to topic homeassistant/locks/ you only see the messages for your lock. But is you subscribe to homeassistant/# you will see both the light and lock messages.
If you subscribe with HiveMQ to topic “#”, you will see all messages. Then you will see if the topics from HA and your alarm match. If they don’t, it will not work.
In your configuration file you say the topic for the status off your alarm should be “riscopanel/armstatus” and the topic for arming/disarming/etc. should be “riscopanel/armstatus/SET”
Can you give some details about your HA installation;
Are you using HASSIO?
Are you using this addon?
Did you recieve errors in the HA logs?
Does the addon give errors in its logs?
This the internal name of the addon I mentioned above
no, i am using this addon : https://github.com/hassio-addons/addon-mqtt/blob/master/README.md
yes, using hassio, running on hassos , build 84.2
no error in HA log
also no error in addon log, when i do a test message, dont see anything at all when i do a test message
i see succesful client connected in addon log
So HiveMQ is no connected to the broker.
The addon consists of 2 things; HiveMQ (mqtt client) and the mqtt broker/server (mosquitto).
In Hive you have to connect to the mosquitto broker.
changed to anonymous connection just for testing, but still the same
when i click on publish test message, i just dont see the test message appearing, subscribed to #
new test, so i stopped the addon, installed mqtt on my ubuntu, follow this 5 min guide
changd in the config yaml file the broker IP address , (ubuntu server) one
restart, and everything is working
so there is definitely something wrong with the addon, dont know why that one is not working