Hello,
I am using OpenHab2.4 and installed Influx and Grafana for visualization purposes. This setup is working fine for past couple of months but now when i wanted to add some more items in persist file, they are not appearing in influxDB “Show series” output or in grafana. All previously added items are persistent and being plotted in grafana but new items are not appearing.
Below are my cfg file:
influxdb.cfg
# The database URL, e.g. http://127.0.0.1:8086 or https://127.0.0.1:8084 . # Defaults to: http://127.0.0.1:8086 # url=http(s)://<host>:<port> url=http://172.29.60.2:8086 # The name of the database user, e.g. openhab. # Defaults to: openhab # user=<user> user=openhab # The password of the database user. # password= password=openhab # The name of the database, e.g. openhab. # Defaults to: openhab # db=<database> db=openhab_db retentionPolicy=autogen # Enable authentication in the [http] section of the configuration file /etc/influxdb/influxdb.conf: [http] enabled = true bind-address = ":8086" # change to a specific interface if needed auth-enabled = false # will enforce authentication
influxdb.persist
Strategies { everyMinute : "0 * * * * ?" everyHour : "0 0 * * * ?" everyDay : "0 0 0 * * ?" every2Minutes : "0 */2 * ? * *" } Items { L1V : strategy = everyChange L1A : strategy = everyChange L1P : strategy = everyChange L1PF : strategy = everyChange L1F : strategy = everyChange L1AE : strategy = everyChange B112F2FESP1PIR2_Motion : strategy = everyChange
B112FESP1PIR2_Action : strategy = everyChange
Every item except for the last two is persisted and is showing in influx.
Below are the item definitions:
String B112F2FESP1PIR2_Motion {mqtt=“<[demo:B112F2FESP1PIR2/motion:state:default]”}
Number B112F2FESP1PIR2_Action {mqtt=“>[demo:B112F2FESP1PIR2/action:command:*:default]”}
Persisted Item:
Number L1P “Power A [%.1f W]” {mqtt = “<[demo:sdm120/pow:state:default]”}
Any Help would be appreciated.