InfluxDB tags and MQTT in single Item definition

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

Accoring to the official docs from:

The persistence service deployed with openHAB is a bit behing teh gitHUB

These tagging options don’t appear to be available in the release version… yet…

@dominikkv, can you confirm?

When this get’s released, that is just metadata. See Design Pattern: Using Item Metadata as an Alternative to Several DPs for details. But the tl;dr is just add it like a channel link of binding config.

Your attempt looks correct based on my experience.

Jeah that’s right, at the moment the official binding has no tag support. You can compile the version from my GitHub fork if you know how to do it. There is a discussion here at the forums to see what I can change to make a proper pull request to go official.