Hello,
I want to use influxDB tags feature on my existing items. i am following this https://github.com/dominikkv/openhab2-addons/tree/influxdb-neo/bundles/org.openhab.persistence.influxdb
in the readme section, it says that i will have to use below format for influx to add tags.
Number test {influxdb=“” [foo=“bar”, baz=“qux”]}
Number:Power c_fridge_instantpower "Power fridge [%.1f W]" (g_instantpower) {influxdb="" [room="Kitchen", target="Fridge"]}
so my question is how would i go about adding it to my existing item definition. My item:
Number B112FHallPIR1_Action {mqtt=“>[demo:B112FHallPIR1/action:command:*:default]”}
i tried adding it like this
Group:Number secondF
Number B112FHallPIR1_Action (secondF) {influxdb=“” [location=“B112f”,
PIR=“PIR1”],mqtt=“>[demo:B112FHallPIR1/action:command:*:default]”}
but it is not adding tags to measurement.
my influxdb.persist:
Strategies {
everyMinute : “0 * * * * ?”
everyHour : “0 0 * * * ?”
everyDay : “0 0 0 * * ?”
every2Minutes : “0 */2 * ? * *”
}Items {
secondF* → “secondF” : strategy = everyChange
}
and influxdb Select * query output:
select * from secondF
name: secondF
time value
2019-09-13T07:16:47.482Z 0
2019-09-13T07:16:47.66Z 1
2019-09-13T07:16:48.577Z 0
Influxdb binding version is 1.13.0
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=xxxxxx # The name of the database, e.g. openhab. # Defaults to: openhab # db=<database> db=openhab_db retentionPolicy=autogen