InfluxDB tags and MQTT in single Item definition

I want to use influxDB tags feature on my existing items. i am following this

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”,

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

# The database URL, e.g. or .
# Defaults to:
# url=http(s)://<host>:<port>
# The name of the database user, e.g. openhab.
# Defaults to: openhab
# user=<user>
# The password of the database user.
# password=
# The name of the database, e.g. openhab.
# Defaults to: openhab
# db=<database>

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.