- Platform information:
- Hardware: RPI3
- OS: Raspbian 4.19
- Java Runtime Environment: No idea
- openHAB version: 2.5.2
- Issue of the topic: Various stability issues, such as loss of Evohome connection and loss of connection between openhab2/InfluxDB/Grafana
Dear Experts,
I’ve been struggling to learn how to apply OH for the last week or so. Although I’m a newbie to OH, I’m not a stranger to software engineering. But the last code I wrote of any kind was Python about 5 years ago and the last time I worked on a serious (professional) project was probably more than 20 years ago. So I can tell you all about C and nothing about Java. Thus, something with OH are no problem at all and others are a complete mystery to me.
To be clear, I have a straight forward OH installation setup and - in theory - running. It has Evohome, Plugwise, Smart Meter bindings and things. I’ve also installed InfluxDB and Grafana and have been producing beautiful graphics of power consumption and temperatures. I also made a full backup at this point. However, I then started experimenting with rules and, as you can expect, made mistake after mistake. At some point, after a restart the Evohome binding, which was previously happily doing its thing, failed to initialise with saying that it failed to login to my TCC account. After much exploration & reading, used open-cli to delete all links and items (I define items in a file, things in paper UI), I emptied the cache and tmp directories, used opencli to clean-the-cache and then started and… yes, indeed Evohome started working again.
However, something else screwed up badly enough that I ended up with duplicate things that I couldn’t remove in Paper UI. So I restored my backup and cleared the cache/tmp dirs. Etc. Today, firstly Evohome stopped working again. So I went through the processes of cleaning up links and items and restarted. But then Grafana started progressively showing “No Data” as time went by. It turns out for some reason that there’s no data flowing from openhab to Grafana. Further, there’s something odd going on with rules - some rules are complaining the that Items that they reference are not present, while as far as I can tell from Paper UI, they’re alive and kicking. I’ve not YET gone all the way back to my backup to restore the situation, but I have deleted items, links, cache and tmp again, but I still have the problem(s) when I restart.
To be honest, I’m getting a bit fed up with this seeming fragility. It’s natural that I’m going to screw up with rule scripts and the system should be resilient enough not to be damaged by what must be common mistakes - if that’s what’s causing all these problems. But maybe it’s something else?
I would appreciate your help and advice.