Zigbee2mqtt problems with openhabian 1.62 (Openhab3)

Hi There,

I just tried to start with a fresh setup of OH3 (Openhabian1.62 newest stable version). I have more than a year of experience with openhab2.5 and I thought I could figure this out, but now im running into some problems with zigbee2mqtt and my CC2531:

I did setup MQTT and figured out all the connections stuff but I get those log messages that are making me wonder if I did a mistake:

2020-12-29 22:47:39.122 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to 'localhost'. Next attempt in 60000ms
2020-12-29 22:47:39.199 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to 'localhost' with clientid 09ae5d30-e06c-4fb8-a607-98175e3017d4
2020-12-29 22:48:39.215 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to 'localhost'. Next attempt in 60000ms
2020-12-29 22:48:39.220 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to 'localhost' with clientid 09ae5d30-e06c-4fb8-a607-98175e3017d4
2020-12-29 22:49:39.223 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to 'localhost'. Next attempt in 60000ms
2020-12-29 22:49:39.228 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to 'localhost' with clientid 09ae5d30-e06c-4fb8-a607-98175e3017d4
2020-12-29 22:50:39.232 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to 'localhost'. Next attempt in 60000ms
2020-12-29 22:50:39.236 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to 'localhost' with clientid 09ae5d30-e06c-4fb8-a607-98175e3017d4
2020-12-29 22:51:39.240 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to 'localhost'. Next attempt in 60000ms
2020-12-29 22:51:39.245 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to 'localhost' with clientid 09ae5d30-e06c-4fb8-a607-98175e3017d4
2020-12-29 22:52:39.249 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to 'localhost'. Next attempt in 60000ms
2020-12-29 22:52:39.254 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to 'localhost' with clientid 09ae5d30-e06c-4fb8-a607-98175e3017d4

On top I don’t know if this is the right way of performing an outgoing JSONPATH Transformation even tough it is working for me.

the real problems begin when I create an generic MQTT Thing for controlling the brightness of my lightbulbs. These take values between 0 and 254 and I created a channel with a percentage value and set the min and max value to 0 and 254.

For Some reasons the control elements sometimes show the value of the dimmer in percentage and sometimes in absolut numbers between 0 and 254. I added a screenshot of both of them being mixed and therefore creating a lot of problems and leading to the result that no command is sent at all at some point.

After a complete reboot of my raspberrypi it looks like this without changing the configuration of these Channels and its working as it should:

Maybe You can help me with these issues :smiley:
Daniel

This might help for your second issue - you have to do something funky for the slider stuff - see towards the bottom of the post:

For your first issue: are you having a problem with Mosquitto? This thread might help - around post 40 is the solution:

1 Like

Thank You for Your answer.
I am going to attemp this trick with the slider and post my results afterwards.

For the first issue:
I do get these log messages in the Openhab log and Mosquitto is working fine. I am able to Control my devices but I‘m not sure if this could be a major problem sometimes later. If you need more information just let me know.

Thank You. :grinning:

Ok this worked. Thank You very much.

Still getting those log messages i posted in the first post. Can somebody help me with those?