-
Notifications
You must be signed in to change notification settings - Fork 779
[MQTT 2.4] action stops functioning #6780
Comments
Kai has worked on getActions recently and it might be fixed by his changes. Need to be tested at some point. |
I can confirm this issue. After a couple of hundred successful calls, I get the message "MQTT publish to openHAB/out/item/vBD_LightScene/ItemStateEvent failed!". |
Can anybody confirm this with a 2.5m1 version? |
Still reproducible in 2.5M1. |
Ok. This issue need to recreated on the openhab2 repository though. I will forget about it, if it is sitting here |
There is one already: https://github.com/openhab/openhab2-addons/issues/4498 |
Expected Behavior
Continued publishing of Mqtt messages.
Current Behavior
After upgrading 2.4 and switching to MQTT 2 I recreated the event-bus like behaviour with the following rule:
rule “Publish item changes”
when
Member of gTemperature changed
then
var state = “”
if (triggeringItem.state != null) {
state = triggeringItem.state.toString
val actions = getActions(“mqtt”,“mqtt:broker:myBroker”)
actions.publishMQTT("/myserver/"+triggeringItem.name+"/state",state)
logInfo(“log”, "publish: " + triggeringItem.name + " " + state)
}
end
While this rule works as expected it stops functioning after several hours and throws an error like: MQTT publish to failed!
The rule creates maximum 20 messages per minute so the load isn't that high.
I tried this on 2 different OpenHAB setups (one RPI 3b and one a more powerful VM) and same result.
Other users have reported similar behaviour.
Possible Solution
David Graeff suggested that this is related to the new publishMQTT action itself and that this might not be stress tested yet.
Steps to Reproduce
Create a rule as above which gets triggered frequently
Wait a few hours (max 24 hours)
Your Environment
openhab 2.4 release
raspian jessie and ubuntu 16.04
The text was updated successfully, but these errors were encountered: