Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.08k stars 1.68k forks source link

AwoX - set off does not switch off the LED but sets the brightness to 1 #19007

Closed 87insane closed 1 year ago

87insane commented 1 year ago

What happened?

See comments here: https://github.com/Koenkk/zigbee2mqtt/discussions/18366#discussioncomment-6595176

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.33.0 commit: f224ef7

Adapter firmware version

0x26580700

Adapter

ConBee2/RaspBee2

Debug log

No response

julianfs commented 1 year ago

You may need to try an external converter to include the line 'meta: {turnsOffAtBrightness1: true},', as used in this definition for an INNR bulb:

{
    zigbeeModel: ['RCL 240 T'],
    model: 'RCL 240 T',
    vendor: 'Innr',
    description: 'Smart round ceiling lamp comfort',
    extend: extend.light_onoff_brightness_colortemp({colorTempRange: [200, 454]}),
    meta: {turnsOffAtBrightness1: true},
    ota: ota.zigbeeOTA,
},
87insane commented 1 year ago

can somebody here, try that? I think thats the way

Hypfer commented 1 year ago

can somebody here, try that? I think thats the way

What about you as the author of the issue?

87insane commented 1 year ago

iam on holliday without my hardware...

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

87insane commented 12 months ago

Hey can somebody test this? I cant...

Frans-Willem commented 11 months ago

Did some research on this, it appears Awox did not properly implement the "Move to Level with On/Off" command, as in it doesn't properly turn off when asked to go to level 0. Sending the "Off" command of the "On/Off" cluster does work, and could be a workaround, although I'm not sure how to implement this properly.

Can I un-stale this issue ?

87insane commented 11 months ago

Hey - I think this can resolve our problem: https://github.com/Koenkk/zigbee2mqtt/issues/19007#issuecomment-1725871948

But i cant test actually.

kaigame commented 11 months ago

I'll happily test this, but i'm no external converter expert, the config will need to be modified to support the Awox light, and there should be more lines of code than this no?

Please forgive my ignorance :)

kaigame commented 11 months ago

const fz = require('zigbee-herdsman-converters/converters/fromZigbee'); const tz = require('zigbee-herdsman-converters/converters/toZigbee'); const exposes = require('zigbee-herdsman-converters/lib/exposes'); const reporting = require('zigbee-herdsman-converters/lib/reporting'); const extend = require('zigbee-herdsman-converters/lib/extend'); const e = exposes.presets; const ea = exposes.access;

const definition = { zigbeeModel: ['EGLO_ZM_RGB_TW'], model: '900024/12253', vendor: 'EGLO', description: 'SALITERAS-Z ceiling light', extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 370], supportsHueAndSaturation: true}), meta: {turnsOffAtBrightness1: true}, };

module.exports = definition;

This seems to work for me, description is a bit off so might change that.

Can confirm that lights turn off with this added and the lights re-paired.

Thanks!!

MarcR2000 commented 10 months ago

I have a similar issue... Will there be a fix or do I need to workaround?

What happened? When you turn the brightness of AwoX22955 to zero, it does not switch off but stays on lowest brightness level. Device only switches off when on/off toggle is pressed.

This is would it looks like after tuning to 0 (no on/off toggle pressed)

topic 'zigbee2mqtt/Eglo_Panel_1', payload '{"brightness":0,"color_mode":"color_temp","color_temp":256.68,"color_temp_startup":65535,"device":{"applicationVersion":2,"friendlyName":"Eglo_Panel_1","hardwareVersion":60,"ieeeAddr":"0xa4c13823a657eeb0","manufacturerID":4417,"manufacturerName":"AwoX","model":"33955","networkAddress":33719,"powerSource":"Mains (single phase)","softwareBuildID":"2.3.12_250","stackVersion":1,"type":"Router","zclVersion":3},"linkquality":94,"power_on_behavior":"previous","state":"OFF"}'

So it does "think" it's off, but actually it isn't.

After toggling ON/OFF it looks like this...

topic 'zigbee2mqtt/Eglo_Panel_1', payload '{"brightness":254,"color_mode":"color_temp","color_temp":256.68,"color_temp_startup":65535,"device":{"applicationVersion":2,"friendlyName":"Eglo_Panel_1","hardwareVersion":60,"ieeeAddr":"0xa4c13823a657eeb0","manufacturerID":4417,"manufacturerName":"AwoX","model":"33955","networkAddress":33719,"powerSource":"Mains (single phase)","softwareBuildID":"2.3.12_250","stackVersion":1,"type":"Router","zclVersion":3},"linkquality":91,"power_on_behavior":"previous","state":"OFF"}'

... and is actually switched off

What did you expect to happen? Switch off on brightness 0

How to reproduce it (minimal and precise) Happens always when tuning to 0 brightness instead of ON/OFF toggle

Zigbee2MQTT version 1.34.0

Adapter firmware version 20220507

Adapter USB Stick CC2652P Sonoff

mbbert commented 9 months ago

I got the same issue after upgrading from firmware version 2.2.10 to 2.7.3 (HW version 4.60). Before the upgrade, turning off the lamp was possible. I did the update due to the warning about degraded network performance, and I noticed that the device was reporting it's status every couple of seconds.

I tried to add meta: {turnsOffAtBrightness1: true}, to a custom definition after creating it as described here. But this didn't work for me, or I did something wrong. Here is my file:

const {light} = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = {
    zigbeeModel: ['TLSR82xx'],
    model: 'TLSR82xx',
    vendor: 'AwoX',
    description: 'Automatically generated definition',
    extend: [light({"colorTemp":{"range":[153,370]}})],
    meta: {turnsOffAtBrightness1: true},
};

module.exports = definition;

But if you add the device to a group, and send {"state": "OFF"} to the group, the device actually turns off. This might be a work-around for this issue.