zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Ikea Tradfri repeater no quality link value reported

Open tiagofreire-pt opened this issue 7 years ago • 17 comments

Bug Report

What happened

No link quality reported on devices connected to this repeater

What did you expect to happen

How to reproduce it (minimal and precise)

Debug Info

zigbee2mqtt version: 1.3.0 CC253X firmware version: March 29, 2019

tiagofreire-pt avatar Apr 12 '19 21:04 tiagofreire-pt

I am seeing the same behavior. Coordinator firmware: 20190425 and zigbee2mqtt: 1.4.0 I have three repeaters that show as joined devices but never report linkquality values.

dnaphreak avatar Jul 20 '19 13:07 dnaphreak

The reason for this is that the TRADFRI repeater doesn't send any messages.

Perhaps we could configure this so that it does, please try with the following configuration (guidance: http://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html):

devices.js

{
        zigbeeModel: ['TRADFRI signal repeater'],
        model: 'E1746',
        description: 'TRADFRI signal repeater',
        supports: 'linkquality',
        vendor: 'IKEA',
        fromZigbee: [fz.ignore_basic_change, fz.ignore_diagnostic_change],
        toZigbee: [],
        configure: (ieeeAddr, shepherd, coordinator, callback) => {
            const device = shepherd.find(ieeeAddr, 1);

            const actions = [
                (cb) => device.report('genBasic', 'modelId', 0, 3, 0, cb),
            ];

            execute(device, actions, callback);
        },
    },

fromZigbee.js

E1746_linkquality: {
        cid: 'genBasic',
        type: ['attReport', 'readRsp'],
        convert: (model, msg, publish, options) => {
            return {linkquality: msg.linkquality};
        },
    },

Koenkk avatar Jul 21 '19 12:07 Koenkk

I may have not done this correctly. I am getting this warning:

No converter available for 'E1746' with cid 'genBasic', type 'attReport' and data '{"cid":"genBasic","data":{"modelId":"TRADFRI signal repeater"}}'

dnaphreak avatar Jul 21 '19 23:07 dnaphreak

I forgot something, please try with:

devices.js

{
        zigbeeModel: ['TRADFRI signal repeater'],
        model: 'E1746',
        description: 'TRADFRI signal repeater',
        supports: 'linkquality',
        vendor: 'IKEA',
        fromZigbee: [fz.ignore_basic_change, fz.ignore_diagnostic_change, fz.E1746_linkquality],
        toZigbee: [],
        configure: (ieeeAddr, shepherd, coordinator, callback) => {
            const device = shepherd.find(ieeeAddr, 1);

            const actions = [
                (cb) => device.report('genBasic', 'modelId', 0, 3, 0, cb),
            ];

            execute(device, actions, callback);
        },
    },

fromZigbee.js

E1746_linkquality: {
        cid: 'genBasic',
        type: ['attReport', 'readRsp'],
        convert: (model, msg, publish, options) => {
            return {linkquality: msg.linkquality};
        },
    },

Koenkk avatar Jul 22 '19 07:07 Koenkk

@Koenkk

I tried the modification as well - my three IKEA repeaters are reporting their linkquality now. Unforturnately they report each 3 seconds, which increases the load on the network substantially.

3DIRK avatar Jul 22 '19 09:07 3DIRK

@3DIRK the code above was for testing purposes, I would recommend changing to

(cb) => device.report('genBasic', 'modelId', 3600, 14400, 0, cb),

which would result in linkquality reported somewhere between every 1 till 4 hours.

Koenkk avatar Jul 22 '19 09:07 Koenkk

Okay, I have made the changes and am now receiving linkquality reports from each repeater! Thank you! Do you need anything from my end?

dnaphreak avatar Jul 22 '19 20:07 dnaphreak

Nope, will be available in the dev branch soon, thanks!

Koenkk avatar Jul 24 '19 19:07 Koenkk

Hi @Koenkk, I'm facing this issue on an home assistant that I've just installed, so I would like to check with you if this change is present in the current release? thank you!

joseal avatar Dec 07 '20 04:12 joseal

@joseal it's already in for a long time (+ 1 year), if it doesn't work you can try to reconfigure: https://www.zigbee2mqtt.io/information/mqtt_topics_and_message_structure.html#zigbee2mqttbridgeconfigure

Koenkk avatar Dec 07 '20 15:12 Koenkk

Hi @Koenkk, thanks for the quick reply! I tried to reconfigure, but it was give me an exception, so I decided to rebuild the container and it looks much better now. Also, the upgrade from raspberry 3B to raspberry 4 seems to cause a negative impacting on the signal quality between the coordenator and the ikea repeater... must be the noise caused by the PI4 (it's a bit better with another USB extension, but not the same as with PI3B). thank you

joseal avatar Dec 07 '20 17:12 joseal

@joseal I have the same problem. What do you mean with "rebuild the container"?

soenkegissel avatar Mar 08 '21 21:03 soenkegissel

@joseal I have the same problem. What do you mean with "rebuild the container"?

@soenkegissel, in my case I had to rebuild the docker container (you can do it by simple removed the addon and added it again). Also, validate if your repeater is running the latest firmware (check for OTA updates) and do a reconfirgure after detected (mine became more stable after the reconfigure... don't ask me why :) ).

What are you using as coordinator?

joseal avatar Mar 09 '21 10:03 joseal

USB zigbee dongle CC2538+CC2592

soenkegissel avatar Mar 09 '21 11:03 soenkegissel

I never tested with that device, but I've 3 CC2531 and one with the RF Amp running without any issues.

Are you using Raspberry Pi 4?

joseal avatar Mar 09 '21 12:03 joseal

I never tested with that device, but I've 3 CC2531 and one with the RF Amp running without any issues.

Are you using Raspberry Pi 4?

Yes. With 2 meter extension.

My very close wall plug is reporting linkquality to coordinator without problems. All other devices are far away and extend over IKEA repeater. They don't report linkquality.

soenkegissel avatar Mar 09 '21 12:03 soenkegissel

Can you bring one device plus the repeater close to the coordinator, just for testing?

joseal avatar Mar 09 '21 14:03 joseal