InfluxDB problems with Switch(ON/OFF) and Contact(OPEN/CLOSED) states

Probably. I think the persistence modules are maintained on the Eclipse SmartHome project, but I could be won’t and they are in the openhab2-addons repo.

It would be good to test with one of the other persistence engines, maybe SQLite so you don’t have to install anything. This will tell them whether it is a problem in shared code or InfluxDB in particular.

All the docs that are complete including API calls, roles language references, readmes for each binding are here.

http://docs.openhab.org

JavaDocs can be found here:

There are lots of links to additional resources in the docs as well.

Much of the reference documentation from the old OH 1.x wiki still applies as well.

This is actually documented here:

PreviousState returns a HistoricItem, not just a State. So to get the state you call .state like you would with any other Item type.

Once you have a State you can cast or use it like any other state object. See the following for a Type Conversions article a few of us are working in before adding it to the docs.

It’s ok. I just find that 90% of the time people who complain had about the lack of docs simply have not looked at the docs. A tremendous amount of effort had gone into the OH 2 docs and while a lot remains to be done, it is more complete than most who complain about the docs give them credit for.

Don’t count yourself out as a contributor either. The fact you know Java and can look at and understand the coffee pots you a level above many of the contributors.