Hello there,
I am using my own weather station and instead of pulling the data through accuweather, I want to pull them from my WeeWX MQTT server. However, I am struggling to get the data from it.
What I have done:
I have created a MQTT Broker, which seems to be correct, as it shows Online:
UID: mqtt:broker:3d1084e2d9
label: MQTT Broker WeeWX
thingTypeUID: mqtt:broker
configuration:
lwtQos: 0
publickeypin: true
clientid: cc5d4355-a628-4f7d-970e-def2344b7d27
keepAlive: 60
secure: false
certificatepin: true
password: *****
qos: 0
reconnectTime: 60000
port: 1883
host: 192.168.1.17
lwtRetain: true
enableDiscovery: true
username: pi
channels:
- id: weather_outTemp_C
channelTypeUID: mqtt:publishTrigger
label: weather/outTemp_C
description: ""
configuration:
stateTopic: weather/outTemp_C
Regarding the WeeWX MQTT Manual https://github.com/weewx/weewx/wiki/mqtt#how-to-verify I have created a channel:
I can’t create the link to the channel, as there is
no profile available for the selected item
:Then I have created MQTT Thing, which is using MQTT broker upper:
UID: mqtt:topic:3d1084e2d9:4a34779f9e
label: WeeWX MQTT Thing
thingTypeUID: mqtt:topic
configuration: {}
bridgeUID: mqtt:broker:3d1084e2d9
channels:
- id: weather_outTemp_C
channelTypeUID: mqtt:number
label: weewx/outTemp_C
description: ""
configuration:
stateTopic: weather/outTemp_C
The channel under it is not getting any data and has always status NULL.
What should I do to make it work? I can see that the WeeWX MQTT server is running and publishing all the data, also the weewx/outTemp_C
topic
Error Log:
2022-01-06 10:59:05.759 [WARN ] [nal.transport.MiIoAsyncCommunication] - Error while polling/sending message for 1676577472
java.lang.IllegalArgumentException: 32 > 3
at java.util.Arrays.copyOfRange(Arrays.java:4029) ~[?:?]
at org.openhab.binding.miio.internal.Message.<init>(Message.java:55) ~[bundleFile:?]
at org.openhab.binding.miio.internal.transport.MiIoAsyncCommunication.sendData(MiIoAsyncCommunication.java:392) ~[bundleFile:?]
at org.openhab.binding.miio.internal.transport.MiIoAsyncCommunication.sendCommand(MiIoAsyncCommunication.java:311) ~[bundleFile:?]
at org.openhab.binding.miio.internal.transport.MiIoAsyncCommunication.sendMiIoSendCommand(MiIoAsyncCommunication.java:176) ~[bundleFile:?]
at org.openhab.binding.miio.internal.transport.MiIoAsyncCommunication$MessageSenderThread.run(MiIoAsyncCommunication.java:278) [bundleFile:?]
Thank you,
Michal, Slovakia