I am trying to connect OpenHab with TTN throug the MQTT binding to visualyze the data but i am not able to do it.
According to the OpenHab documentation, the first step is create the MQTT broker but it remains always Offline. Uploading: image.png…
I have configured the binding to eu.thethings.network adding my app_id and access_key.
That part seems ok because if (only for test) i write a bad password on purpose i receive an error message. So app_id and password are OK.
It is a bit strange, because the configuration for the broker only needs those 3 fields.
Reviewing the logs you can see the following:
2020-04-19 18:30:56.719 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to ‘eu.thethings.network’ with clientid miguel635_prueba
2020-04-19 18:30:57.027 [WARN ] [.transport.mqtt.MqttBrokerConnection] - Failed subscribing to topic homeassistant/#
It seems that the second message is the cause but i dont know why. I have asked in the openhab community forum and probably the root cause is that TTN is rejecting the connection for some reason.
Have anyone connected OpenHab with TTN?
Does anyone know the reason for that message?
Dear Miguel,
Are you sure temperature is the name of the field? Take into account that TTN usually uses a raw payload, and will only decode it as payload fields if you select a payload format. For example, i use Cayenne LPP
With this payload format, a typical packet will decode this way
Dear Miguel,
I have just configured your user in my openHAB installation and the broker is online.
Please check the full configuration carefully; if everything is OK, I would bet for a problem with the firewall or other network issue
Do you keep the TTN fair access policy in mind with you sensors? On average 30 seconds of airtime each day for a sensor means you can send small amounts of data about every 5 minutes using SF7, more often means your usage is in excess of the fair access policy.
Hi, I have a similar problem. Everything works fine for openhab running in a docker container on an debioan server. The same configuration is not working with openhab running in a docker container on a synology NAS system. I don’t know why, but maybe you have the same issue.