Hi all,
I’m new to openremote and I’m trying to publish a simple boolean value via MQTT.
I followed the tutorial “Connect your MQTT Client” and added a simple on/off sensor using the Thing asset type.
I can connect to my openremote setup using MQTTX and publish the value.
The value in the attribute is not updated however.
The response I get is:
Topic: master/client123/writeattributevalue/bel/41c4ZbpuOkejGhptk7Aaa7QoS: 0
true
I also tried 1 as value.
The attribute configuration is:
I also connected the attribute to the service user.
The service user is a non-restricted user with read and write access.
Can someone please help me with getting this to work?
Thanks in advance,
wborn
October 14, 2024, 11:25am
2
Hello and welcome @j.blaauw !
It should be possible to publish using MQTTX.
I just gave it a try with a boolean attribute named “working” and it accepts both 1/0 and and true/false values for me:
Do you see attribute value changes whenever you subscribe to this topic?
master/client123/attribute/+/#
Did you check the (container) logs to see if any warnings/errors or exceptions occur that might help explaining why it doesn’t work for you?
Hi Wouter,
Thank you for your replies!
I think that you are right that the problem is in the setup.
I will look at this tomorrow evening.
Kind regards,
Johan
1 Like
I have reinstalled docker and tried again but the result is the same unfortunately.
As you can see in the output of “docker ps” the proxy container does bind with 0.0.0.0
openremote@iot:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4d5aa51b890c openremote/proxy:latest “/entrypoint.sh run” 17 hours ago Up 17 hours (healthy) 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 0.0.0.0:8883->8883/tcp, :::8883->8883/tcp, 127.0.0.1:8404->8404/tcp openremote-proxy-1
71f60b27dfcc openremote/manager:latest “/bin/sh -c 'java $O…” 17 hours ago Up 17 hours (healthy) 1883/tcp, 8080/tcp, 8443/tcp, 127.0.0.1:8405->8405/tcp openremote-manager-1
e190efa76bfa openremote/keycloak:latest “/bin/sh -c '/opt/ke…” 17 hours ago Up 17 hours (healthy) 8080/tcp, 8443/tcp openremote-keycloak-1
5291d949124c openremote/postgresql:latest “/or-entrypoint.sh p…” 17 hours ago Up 17 hours (healthy) 5432/tcp, 8008/tcp, 8081/tcp openremote-postgresql-1
openremote@iot:~$
It works now
After reconnecting with MQTTX it worked
@wborn Thank you for your help and time.
1 Like
wborn
October 18, 2024, 8:51am
6
Great to hear it’s working now @j.blaauw !
system
Closed
January 16, 2025, 8:52am
7
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.