denominator
(James Bowler)
December 26, 2020, 1:44pm
18
Can you post your broker code
UID: mqtt:broker:RPI4
label: MQTT Broker RPI4
thingTypeUID: mqtt:broker
configuration:
lwtQos: 0
publickeypin: false
keepAlive: 60
clientid: bbea88c4-bcd2-4eb3-bc01-49d14720018b
secure: false
certificatepin: false
password: pleasework
qos: 0
reconnectTime: 60000
host: 192.168.1.248
lwtRetain: true
username: openhabian
enableDiscovery: true
so this was my config so far:
UID: mqtt:broker:openHAB
label: MQTT Broker
thingTypeUID: mqtt:broker
configuration:
lwtQos: 0
publickeypin: true
keepAlive: 60
clientid: 3b875904-088a-49da-8300-72ccd1447766
qos: 0
reconnectTime: 60000
host: localhost
secure: false
certificatepin: true
lwtRetain: true
enableDiscovery: true
with adding username and password it connects now to the broker again
UID: mqtt:broker:openHAB
label: MQTT Broker
thingTypeUID: mqtt:broker
configuration:
lwtQos: 0
publickeypin: true
keepAlive: 60
clientid: 4b8ce49d-81fe-410a-bd13-73973849eb25
secure: false
certificatepin: true
password: openhabian
qos: 0
reconnectTime: 60000
host: localhost
lwtRetain: true
enableDiscovery: true
username: openhabian
still I didn’t try to restart the rpi yet. Will do that as a next step. Also I discovered this thread with similar problems described for oh2: Openhabian - Mosquitto MQTT failed to start - #41 by mstormi
1 Like
Superpedro
(Peter Busch)
December 26, 2020, 2:00pm
21
Muchas Gracias
After created them directory and mosquitto.conf and changed the fileowner to mosquitto everything is working fine
OH 3 Broker is green to
Thank you
2 Likes
denominator
(James Bowler)
December 26, 2020, 2:09pm
22
Username and Password dose help to get it going.
Now how did you install openhabian and mosquitto so the team can see what went wrong. This is an issue @mstormi will fix if he has enough information to fix it. He is likely looking for the steps you took to install openhaian.
Can you both also goto help and about / technical details / View details / copy and past contents here.
runtimeInfo:
version: 3.0.0
buildString: Release Build
locale: en_AU
systemInfo:
configFolder: /etc/openhab
userdataFolder: /var/lib/openhab
logFolder: /var/log/openhab
javaVersion: 11.0.9
javaVendor: Azul Systems, Inc.
javaVendorVersion: Zulu11.43+88-CA
osName: Linux
osVersion: 5.4.79-v8+
osArchitecture: aarch64
availableProcessors: 4
freeMemory: 85160224
totalMemory: 335544320
bindings:
- astro
- bom
- chromecast
- http
- ipcamera
- irtrans
- mqtt
- sensibo
clientInfo:
device:
ios: false
android: false
androidChrome: false
desktop: true
iphone: false
ipod: false
ipad: false
edge: false
ie: false
firefox: false
macos: false
windows: true
cordova: false
phonegap: false
electron: false
nwjs: false
webView: false
webview: false
standalone: false
os: windows
pixelRatio: 1
prefersColorScheme: dark
isSecureContext: false
locationbarVisible: true
menubarVisible: true
navigator:
cookieEnabled: true
deviceMemory: N/A
hardwareConcurrency: 12
language: en-US
languages:
- en-US
- en
onLine: true
platform: Win32
screen:
width: 1920
height: 1080
colorDepth: 24
support:
touch: false
pointerEvents: true
observer: true
passiveListener: true
gestures: false
intersectionObserver: true
themeOptions:
dark: light
filled: true
pageTransitionAnimation: default
bars: filled
homeNavbar: default
homeBackground: default
expandableCardAnimation: default
userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/87.0.4280.88 Safari/537.36
timestamp: 2020-12-26T14:07:25.358Z
I installed openhabian on a SD-Card using Etcher and mosquitto via the openhab-configtool. This is my output:
runtimeInfo:
version: 3.0.0
buildString: Release Build
locale: de_DE
systemInfo:
configFolder: /etc/openhab
userdataFolder: /var/lib/openhab
logFolder: /var/log/openhab
javaVersion: 11.0.9
javaVendor: Azul Systems, Inc.
javaVendorVersion: Zulu11.43+88-CA
osName: Linux
osVersion: 5.4.79-v7+
osArchitecture: arm
availableProcessors: 4
freeMemory: 98470032
totalMemory: 194838528
bindings:
- enocean
- homematic
- mqtt
- shelly
- zigbee
clientInfo:
device:
ios: false
android: false
androidChrome: false
desktop: true
iphone: false
ipod: false
ipad: false
edge: false
ie: false
firefox: true
macos: false
windows: true
cordova: false
phonegap: false
electron: false
nwjs: false
webView: false
webview: false
standalone: false
os: windows
pixelRatio: 1.25
prefersColorScheme: light
isSecureContext: false
locationbarVisible: true
menubarVisible: true
navigator:
cookieEnabled: true
deviceMemory: N/A
hardwareConcurrency: 4
language: de
languages:
- de
- en-US
- en
onLine: true
platform: Win32
screen:
width: 1536
height: 1024
colorDepth: 24
support:
touch: false
pointerEvents: true
observer: true
passiveListener: true
gestures: false
intersectionObserver: true
themeOptions:
dark: dark
filled: true
pageTransitionAnimation: default
bars: filled
homeNavbar: default
homeBackground: default
expandableCardAnimation: default
userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101
Firefox/84.0
timestamp: 2020-12-26T14:19:42.046Z
@Superpedro did you resatert the pi?
for me after restart the problem still existed.
After I followed the instructions in this post it now survives a restart as well:
Try
mkdir -p /var/log/mosquitto /opt/zram/log.bind/mosquitto
chown mosquitto /var/log/mosquitto /opt/zram/log.bind/mosquitto
systemctl start mosquitto.service
Create /lib/systemd/system/mosquitto.service.d/override.conf to contain
[Unit]
After=network-online.target zram-config.service
Wants=network-online.target zram-config.service
Superpedro
(Peter Busch)
December 26, 2020, 8:52pm
25
Hi,
yes it´s gone after reboot
Superpedro
(Peter Busch)
December 26, 2020, 9:11pm
26
Thanks god ahhh Markus - perfect work it´s working now
haybolat
(Hayati BOLAT)
December 26, 2020, 9:19pm
27
Hello, can you please help me? Openhab3 MQTT system broker connection screen is blank.
denominator
(James Bowler)
December 27, 2020, 1:27am
28
We would need more information to be able to help you @haybolat
What broker are your using?
How did you install your broker?
Is it this screen that is blank?
haybolat
(Hayati BOLAT)
December 27, 2020, 5:19am
29
What broker are your using?
Mosquitto
How did you install your broker?
I installed it via openhab-config
Is it this screen that is blank?
Yes
I reinstalled openhab3 2 times. It didn’t happen again, I don’t know where I’m making a mistake.
denominator
(James Bowler)
December 27, 2020, 6:07am
30
Ok that doesn’t look good
You don’t need a system broker to get it working.
Install the MQTT Binding if you haven’t already then create a thing /broker
haybolat
(Hayati BOLAT)
December 27, 2020, 6:26am
31
Yes, I just reinstalled. I did what he said before installing mosquitto. Thank you very much.
Why is this happening? is this a system error?
denominator
(James Bowler)
December 27, 2020, 6:39am
32
I assume the main issue is that mosquitto changed something and now openHABian needs to catch up in the way it is installed but thats just a guess,
The System broker page being blank is a new issue and if more people experience it the an github issue should be raised.
haybolat
(Hayati BOLAT)
December 27, 2020, 6:40am
33
denominator:
I assume the main issue is that mosquitto changed something and now openHABian needs to catch up in the way it is installed but thats just a guess,
The System broker page being blank is a new issue and if more people experience it the an github issue should be raised.
Understood. Thank you very much.
Cav
(Cav Mort)
December 27, 2020, 7:13am
34
My MQTT has a communication error. Can I set up a broker in Openhab 3 from the binding or do I have to install Mosquitto, etc?
Thanks
No. openHAB 3 does not come with an MQTT broker.
You don’t have to, there are other options, but Mosquitto is very popular.
haybolat
(Hayati BOLAT)
December 27, 2020, 8:38am
36
Again, the mqtt broker setting page is empty, I think this makes the system settings (locale and timezone) when the settings change.
Setting locale and timezone to default setting is fixed. This is a system error in my opinion. let us report it where.