Issue of the topic: binding-mqtt - 2.4.0 not working
mqtt binding stops working after modifying .items or .things files
I need to disable and enable the mqtt:broker binding from karaf console
I am completely the opposite, just as @rlkoshak all my things are defines by PaperUI. This way, no syntax errors and mostly auto detected. I started with text files and migrated to PaperUI.
Same for me. I mostly use Text-Files, where possible. Even in this case(see Example above). But you can see in PaperUI how your Thing is stored in JsonDB. But after a change in the Text-File the JsonDB seems not to be updated. So I first have to restart OH, and then I see the changes made in the text-file.
Text file defined Things never get stored in JSONDB. They are completely different paths. If you have the Thing in both places, then you have the Things defined twice. I’m not sure what happens in this case but it’s not good. In a best case scenario, the .things file definition will take precedence. But you should not have the same Thing defined both ways. Pick one or the other.
Sorry for my amateurish attempt to explain what happened (in my thinking). I always thought that the Text-Files where loaded into JsonDB. Ash over my main for this.
What I meant is that when creating a Thing one can see the result in PaperUI as shown above, is this correct ?
If I now change the command topic in my text-file (and save it) I still see the old value in the PaperUI(Thing). And of course my channel will react only on the old topic!
So if I now restart OH the Thing is newly loaded and now the stateTopic has the value which changed before in the text-file.
Hope this is better understandable what I meant.
BTW:So now it would be interesting for me where the text-files are stored or loaded ?
Maybe a bundle restart could help ?! (Instead of OH restart) I didn’t try until now. And which one to restart ???
openhab> bundle:list | grep -i mqtt
227 x Active x 80 x 1.2.1 x Paho MQTT Client
235 x Active x 80 x 2.5.0.M3 x openHAB Add-ons :: Bundles :: MQTT Broker Binding
236 x Active x 81 x 2.5.0.M3 x openHAB Add-ons :: Bundles :: MQTT Things and Channels
237 x Active x 82 x 2.5.0.M3 x openHAB Add-ons :: Bundles :: MQTT HomeAssistant Convention
238 x Active x 82 x 2.5.0.M3 x openHAB Add-ons :: Bundles :: MQTT Homie Convention
245 x Active x 80 x 2.5.0.M3 x openHAB Core :: Bundles :: MQTT Transport
openhab>
Number 236 (in my case). Sorry for my silly questions
Hi Rossko,
if you mean that the item in question is not often in use, I have to say NO. It’s a new one, which gets every minute a response via Mosquitto.
I have another RPi, which I can use for Office-Applications (Libre-Office,i.e.) with Standard GUI from the RasPi-Project (Just for Fun). This RPI sends the CPU-Temperature to my OH-RPI every Minute via MQTT-Client. Another point is that my Sonoffs (about 15 -20 pieces) always are communicating via Bridge/Thing between Device(s) and OH. Minimum Channels for the devices are 4 Channels. So I think there is a lot of communication. So no time to become lazy for my PI’s.