Zigbee2mqtt revisited: No more ugly transformations

Try it with single quotes:

when
    Channel 'mqtt:topic:be6e02f3:Cube:action' triggered
then

I’m not 100% sure if that will make a difference but it’s what I use and it works so worth a try. Also what is triggered? You may need to add that after the word triggered like below where START is used.

when

Channel 'astro:sun:local:civilDusk#event' triggered START

then
1 Like

I don’t use trigger channel, i just trigger on item change. Just create the item based on the channel and trigger on the item.

Check the string within the rule.

1 Like

Thank you,friends. I used item based driven rules and this work fine for me.

 rule "Zigbee2Mqtt Cube action"
when
    Item Cube_Action received update
then
    logError("xiaomicube", "cube action fired")
    switch(Cube_Action.state.toString) {
        case "slide": {

Newb here, how does channel referencing work? Where can I RTFM it?

First post and

Sorry, I should have been clearer when asking: I don’t get the ITEMS part specifically.
I understand how “thing” references mqtt channel.
E.g. zigee2mqtt//… etc

But having defined things, why does one need to reference items like this:
“mqtt:topic:broker:0x00158d00015aa9b5:click”
And sometimes like this:
“mqtt:topic:mosquitton:osramrgbbulb:color”
?

It’s up to you how you define the channels:

This post is about getting rid of transformations:

experimental:
  output: attribute

Do items reference channels directly, or rather channels within things (not really via mqtt)?

1 Like

What version of openhab do you use?
i have the problem with 2.5.2 that i get a value with dezimals.

%s is not working :frowning:

Sorry for the delay, I use 2.5.2 without any problems

do you use the docker container ore do you have installed on a raspberry?

I use openhabian on a rasperypi

1 Like

Has someone already successfully added the Xiaomi vibration sensor DJT11LM without an „ugly transformation“?

Can any one recommend me good hardware to get started with zigbee2mqttt. It some of the hardware sold on Amazon has bad ratings. That’s why I wanted to ask for advice which hardware to get

I bought all my stuff from here:
https://www.aliexpress.com/wholesale?catId=0&initiative_id=AS_20200407035655&SearchText=cc2531+zigbee2mqtt

May have to wait on shipping but much cheaper. :wink:

1 Like

Or from here. If you want a a device that in my case covers 4 floors with battery devices and without a repeater. And not like the CC2531 that hardly reached the devices on the same floor.

2 Likes

if you plan to operate many devices via zigbee, I would advise you to use this:

http://www.ti.com/tool/LAUNCHXL-CC26X2R1
or
https://www.ti.com/store/ti/en/p/product/?p=LAUNCHXL-CC1352P-2

i have changed from CC2531 to the CC1352P-2

i have 53 devices now, it is really stable and it will be more in the next time :slight_smile:

2 Likes

I do not have multi floors but home is 4000sqft with CC2531 centrally located and it reaches all devices.

I do like options so thanks to you and @mpuff for the links. :+1:

First of all thank you all for the great recommendations. Really appreciate the advice.

@frankie.delure when using the device you mentioned, is there anything special I need to be aware of when setting everything up?