The influxdb and mysql are also dockers. I can reach them from anywhere else on the network, and my openhab installation in a VM is also putting data into them.
Should be able to connect to influx from inside the docker
Now I am not getting any errors… But it still isnt working either
2019-05-27 07:00:39.778 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'Europe/Copenhagen'.
2019-05-27 07:00:39.786 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Location set to '0,0'.
2019-05-27 07:00:39.788 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'da_DK'.
2019-05-27 07:00:39.953 [INFO ] [ebuilder.internal.HomeBuilderServlet] - Started Home Builder at /homebuilder
2019-05-27 07:00:39.966 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2019-05-27 07:00:41.596 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'aircondition.items'
2019-05-27 07:00:41.638 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'workroom.items'
2019-05-27 07:00:41.651 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'common.items'
2019-05-27 07:00:41.826 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mysql.persist'
2019-05-27 07:00:41.839 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'influxdb.persist'
2019-05-27 07:00:42.628 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2019-05-27 07:00:42.789 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'nygade.sitemap'
2019-05-27 07:00:42.889 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'mqtt.things', using it anyway:
Provide a thing type ID and a thing ID in this format:
<thingTypeId> <thingId>
Provide a thing type ID and a thing ID in this format:
<thingTypeId> <thingId>
2019-05-27 07:00:42.891 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mqtt.things'
2019-05-27 07:00:43.167 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.1.100:8080
2019-05-27 07:00:43.169 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.1.100:8443
2019-05-27 07:00:43.262 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2019-05-27 07:00:43.411 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.1.30' with clientid paho172348801358278 and file store '/openhab/userdata/mqtt/192.168.1.30'
Why did you create textual MQTT Things and not via PaperUI? Also you messed something up there.
Well let’s take a look at your influxdb.persist file
This is my crude, I don’t care, log everything file.
// Persistence Strategien haben einen Namen und eine Definition
Strategies {
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
// Wenn bei einem unten definierten Item keine Strategie angebeben ist,
// wird die Default-Liste angewendet
default = everyChange
}
/*
* Each line in this section defines for which item(s) which strategy(ies)
* should be applied. You can list single items, use "*" for all items or
* "groupitem*" for all members of a group item (excl. the group item itself).
*/
Items {
// Speichere die Daten aller Items jeden Tag (veryDay), bei jeder Änderung (everyChange) und
// ordne den Items bei einem Neustartand den letzten Wert zu (restoreOnStartup)
* : strategy = everyChange, everyDay
}
This way you can see what the influx binding is trying to do every change etc.
16:19:10.352 [TRACE] [b.internal.InfluxDBPersistenceService] - Tried to get item from item class class org.openhab.core.library.items.SwitchItem, state is ON
16:19:10.353 [INFO ] [smarthome.event.ItemStateChangedEvent] - BewegungsmelderKHlschrankGetrNke_MotionStatus changed from OFF to ON
16:19:10.358 [DEBUG] [b.internal.InfluxDBPersistenceService] - got OnOffType value 1
16:19:10.360 [TRACE] [b.internal.InfluxDBPersistenceService] - storing BewegungsmelderKHlschrankGetrNke_MotionStatus in influxdb value 1, BewegungsmelderKHlschrankGetrNke_MotionStatus (Type=SwitchItem, State=ON)
That is not how .persist files have ever worked. The * stands for “all members of this Group”. So you would need to create a Group named “sensor” and add “sensorStuff” to that Group for it to be persisted using “sensor*” in a .persist file. This is documented in Persistence | openHAB