5
try again in 5 seconds
Attempting MQTT connection…
failed, rc=
5
try again in 5 seconds
// Update these with values suitable for your network. #define wifi_ssid “Casa” #define wifi_password “96xxxxx” #define mqtt_server “192.168.1.89” #define mqtt_user “xxx” // not compulsory if you set it uncomment line 127 and comment line 129 #define mqtt_password “xxx” // not compulsory if you set it uncomment line 127 and comment line 129
i change all values …how can see if my mqtt broker is running?
Use the one inegrated with home-assistant to begin. Its simpler like that. Dont forget to set your mqtt username and password.
You can also download an mqtt client and try to connect to your mqtt broker.
i test my broker with the mqtt.fx for windows, and connect well. works
but on arduino the problem continue…
Attempting MQTT connection…
failed, rc=
5
try again in 5 seconds
SOLVED
edit:
// If you want to use a username and password, uncomment next line and comment the line if (client.connect(“433toMQTTto433”)) {
if (client.connect(“433toMQTTto433”, mqtt_user, mqtt_password)) {
// and set username and password at the program beginning
// if (client.connect(“433toMQTTto433”)) {
The problem i found is that it has only one play load one code there is no code sent for off just for on so i have no idea how to make it work in HA.
I had a look around in mqtt example but nothing worked if anyone can help or point me in the right direction will be grate.
Thanks
For some reason does not work for me i tried your configuration in binary sensors where it begin not triggered and when the code was sent it changed to on and remained on. In normal sensors different story it will start with the code on displayed and will remain there.
I changed the value of retain but no success.
Thanks anyway.
@1technophile,
The Home Assistant sits on Raspberry PI so, is there a reason for implementing the 433toMQTTto433 on Arduino ?
I guess the 433 transmitter and receiver could be connected through Raspberry PI, am I right ?
Yes there is a reason,the separation of responsabilities between gateway and hub software. In particular if you want to keep at arduino level some basic and crucial functions like an alarm system.
Yes you could connect a 433 transmitter and receiver to the Pi, in my point of view not so easy than an arduino but can be done.
Yeah, I understand the basic/obvious reasons - simplicity/modularity (but on other hand - more hardware is needed).
Was curious, what THE Creator (@1technophile ) had in mind
that’s an interesting point (I remember reading this somewhere on forum … or maybe on @1technophile’s blog) :
Where is this setting I am also getting same error while connecting but i cannot find the line to uncomment in OpenMQTTGateway.ino or User_config.h file. I am able to connect it via windows