# Monitor and control zigbee2mqtt and zigbee dongle (CC2531)

**URL:** <https://community.openhab.org/t/monitor-and-control-zigbee2mqtt-and-zigbee-dongle-cc2531/101668>\
**Category:** Solutions\
**Tags:** zigbee2mqtt\
**Created:** [July 1, 2020, 6:24pm UTC](https://community.openhab.org/t/monitor-and-control-zigbee2mqtt-and-zigbee-dongle-cc2531/101668 "2020-07-01T18:24:04Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![rubens](https://community.openhab.org/user_avatar/community.openhab.org/rubens/32/50452_2.png) [@rubens](https://community.openhab.org/u/rubens)\
**Post date:** [July 2, 2020, 3:45pm UTC](https://community.openhab.org/t/monitor-and-control-zigbee2mqtt-and-zigbee-dongle-cc2531/101668/10 "2020-07-02T15:45:13Z")

</div>

my apologies to @Bruce_Osborne for me showing continued interest in unofficial ways to talk to my tradfris, but hej, [[Solved] Zigbee2mqtt vs "ordinary" zigbee - #10 by AndreasBrett](https://community.openhab.org/t/solved-zigbee2mqtt-vs-ordinary-zigbee/67465/10) …

@hafniumzinc:

```auto
    Thing topic z2mBridge "CC2531" {
    Channels:

        Type switch : permitJoin "Permit join" [
            stateTopic = "z2m/bridge/config",
            transformationPattern="JSONPATH:$.permit_join∩MAP:switch2online.map",
            commandTopic="z2m/bridge/config/permit_join",
            transformationPatternOut="MAP:switch2online.map",
            off="false",
            on="true"
        ]
...

```

and the map goes:

```auto
OFF=OFFLINE
ON=ONLINE
NULL=UNDEFINED
-=-
true=true
false=false
0=false
1=true

```

The last 2 lines are left over from my try-things phase. W/o the true=true - lines mqtt would give

```auto
z2m/bridge/config/permit_join (null)

```

No surprise, there has to be a match. But apparently the value already is one out of [true, false] so why would a [1, 0] be written to mqtt? Interesting indeed.

---

_[View the full topic](https://community.openhab.org/t/monitor-and-control-zigbee2mqtt-and-zigbee-dongle-cc2531/101668)._
