# Tasmota Zigbee bridge

**URL:** <https://community.influxdata.com/t/tasmota-zigbee-bridge/32983>\
**Category:** Telegraf\
**Tags:** influxdb, mqtt\
**Created:** [January 28, 2024, 8:34pm UTC](https://community.influxdata.com/t/tasmota-zigbee-bridge/32983 "2024-01-28T20:34:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![powerfish](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@powerfish](https://community.influxdata.com/u/powerfish)\
**Post date:** [January 28, 2024, 8:34pm UTC](https://community.influxdata.com/t/tasmota-zigbee-bridge/32983/1 "2024-01-28T20:34:19Z")

</div>

Hi,

I’m am trying to pass the following json strings which I get from my device:

tele/tasmota\_28237D/SENSOR = {“Time”:“2024-01-28T19:42:41”,“ZbReceived”:{“0x06E2”:{“Device”:“0x06E2”,“Name”:“Sensor\_1”,“Temperature”:7.33,“Endpoint”:1,“LinkQuality”:87}}}  
tele/tasmota\_28237D/SENSOR = {“Time”:“2024-01-28T19:43:09”,“ZbReceived”:{“0x1CAD”:{“Device”:“0x1CAD”,“Name”:“Sensor\_2”,“Humidity”:55.02,“Endpoint”:1,“LinkQuality”:66}}}

My config:

[[inputs.mqtt\_consumer]]  
name\_override = “tasmota”  
servers = [“mqtt://192.168.x.x:1883”]  
topics = [  
“tele/tasmota\_28237D/SENSOR”,  
]  
qos = 0  
connection\_timeout = “30s”  
persistent\_session = false  
client\_id = “telegraf”  
data\_format = “json\_v2”  
[[inputs.mqtt\_consumer.json\_v2]]  
timestamp\_path = “Time”  
timestamp\_format = “2006-01-02T15:04:05”  
timestamp\_timezone = “Europe/Berlin”  
[[inputs.mqtt\_consumer.json\_v2.object]]  
path = “ZbReceived”  
included\_keys = [“Device”, “Temperature”, “LinkQuality”]

Now I can’t get the data to be written to the influxdb via telegraph. Could any of you please help me?

---

<div class="post-metadata">

**Author:** ![jpowers](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jpowers/32/8569_2.png) [@jpowers](https://community.influxdata.com/u/jpowers)\
**Post date:** [January 29, 2024, 2:07pm UTC](https://community.influxdata.com/t/tasmota-zigbee-bridge/32983/2 "2024-01-29T14:07:28Z")

</div>

Hi,

> [@powerfish](#):
>
> Now I can’t get the data to be written to the influxdb via telegraph.

To be able to assist further it is extremely helpful if you explain what you have tried and what issue you are running into. For example, are you getting an error? Can you please share your logs?

Your JSON data looks like:

```json
{
    "Time": "2024-01-28T19:42:41",
    "ZbReceived": {
      "0x06E2": {
        "Device": "0x06E2",
        "Name": "Sensor_1",
        "Temperature": 7.33,
        "Endpoint": 1,
        "LinkQuality": 87
      }
    }
}

```

However, your path currently is set to:

```auto
path = "ZbReceived"

```

Which does not look right. You instead want to get everything below the message ID, so something like:

```auto
path = "ZbReceived.*"

```

I would also suggest making Device a tag so you can distinguish between devices.

---

<div class="post-metadata">

**Author:** ![powerfish](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@powerfish](https://community.influxdata.com/u/powerfish)\
**Post date:** [January 29, 2024, 8:44pm UTC](https://community.influxdata.com/t/tasmota-zigbee-bridge/32983/3 "2024-01-29T20:44:16Z")

</div>

> [@jpowers](#):
>
> ```auto
> path = "ZbReceived.*"
> 
> ```
> 
> I would also suggest making Device a tag so you can distinguish between devices.

Hi,  
thank you for these information. I changed my configuration and it works now. Do you still see opportunities for improvement?

[[inputs.mqtt\_consumer]]  
servers = [“mqtt://192.168.x.x:1883”]  
name\_override = “tasmota”  
topics = [  
“tele/tasmota\_28237D/+”,  
]  
qos = 0  
connection\_timeout = “30s”  
persistent\_session = false  
client\_id = “telegraf”  
data\_format = “json\_v2”

[[inputs.mqtt\_consumer.json\_v2]]  
timestamp\_path = “Time”  
timestamp\_format = “2006-01-02T15:04:05”  
timestamp\_timezone = “Europe/Berlin”  
[[inputs.mqtt\_consumer.json\_v2.object]]  
path = “ZbReceived.\*”  
tags = [“Device”]  
excluded\_keys = [“Endpoint”,“Name”]
