Monitor and control zigbee2mqtt and zigbee dongle (CC2531)

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

@hafniumzinc:

    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:

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

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.