zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

ZNJLBL01LM show as Unknown after 1.37.0

Open clowncracker opened this issue 9 months ago • 4 comments

What happened?

After updating to 1.37.0 from 1.36.1, the blinds no longer show Open/Closed, they only show as Unknown.

What did you expect to happen?

I expect the blinds to show Closed or Open, not Unknown.

How to reproduce it (minimal and precise)

Upgrade to 1.37.0 and I get this issue. Downgraded back to 1.36.1 and the state came back.

Zigbee2MQTT version

1.37.0

Adapter firmware version

20220219

Adapter

SONOFF Zigbee 3.0 USB Dongle Plus Gateway

Setup

Add-on on Unraid VM

Debug log

No response

clowncracker avatar May 02 '24 01:05 clowncracker

My ZNJLBL01LM Is also showing the same issue on a UZG-01 with firmware 20240316. I also tried connecting it to an aqara hub to see if there was a newer firmware as #22299 references fw 09-12-2023 but there isn't one available so it could be there is a newer revision that is slightly different or a difference between Chinese and EU ones.

10Thirty avatar May 02 '24 08:05 10Thirty

As mention on my comment on https://github.com/Koenkk/zigbee2mqtt/issues/22397

Same issue here. Not sure if this is with Zigbee2MQTT 1.37.0 or Home Assistant 2024.05.0

To be clear, Z2M seems to have all the info, but in Home Assistant the state of the cover.entity is "unknown"

{ "battery": 43, "charging_status": false, "device_temperature": 23, "last_seen": "2024-05-02T11:14:40+01:00", "linkquality": 116, "motor_speed": "medium", "motor_state": "pause", "position": 36, "power_outage_count": 2, "running": false, "state": "OFF" }

image

Looking at some automations I had, the attribute in HASS was previously "position", but now it is "current_position".

Was this changed in 1.37.0 ? That could be the cause of this issue.

The attribute in HASS was previously "position", but now it is "current_position" for the cover.entity. I think this might be the issue.

cromelex avatar May 02 '24 10:05 cromelex

same problem here, hoping for a fix

frops83 avatar May 02 '24 11:05 frops83

Pushed a fix, let me know if it works.

Changes will be available in the dev branch in a few hours from now.

Koenkk avatar May 02 '24 19:05 Koenkk

Hi @Koenkk, this is also a similar issue for the ZNCLDJ12LM, line 2626 in src/lib/lumi.ts. Should be 'stopped' and not 'stop'?

if (['ZNCLDJ12LM', 'ZNCLDJ14LM'].includes(model.model)) lookup = {0: 'closing', 1: 'opening', 2: 'stop'};

allistermaguire avatar May 02 '24 20:05 allistermaguire

Pushed a fix, let me know if it works.

Changes will be available in the dev branch in a few hours from now.

Image koenkk/zigbee2mqtt:latest-dev (Last pushed 41 minutes ago by koenkk) fixes this issue for me!

golles avatar May 02 '24 21:05 golles

Hi @Koenkk, this is also a similar issue for the ZNCLDJ12LM, line 2626 in src/lib/lumi.ts. Should be 'stopped' and not 'stop'?

if (['ZNCLDJ12LM', 'ZNCLDJ14LM'].includes(model.model)) lookup = {0: 'closing', 1: 'opening', 2: 'stop'};

Hello @Koenkk I can confirm this for ZNCLDJ12LM. The state for this one is still opening or closing even when the motor is currently stopped. Please push fix for this also. Thanks in advance.

Dillton avatar May 02 '24 21:05 Dillton

Besides everything working fine, the HA log has many entries like WARNING (MainThread) [homeassistant.components.mqtt.cover] Payload is not supported (e.g. open, closed, opening, closing, stopped): pause

There is already a ticket for this btw #22417

golles avatar May 03 '24 11:05 golles

Hi @Koenkk, this is also a similar issue for the ZNCLDJ12LM, line 2626 in src/lib/lumi.ts. Should be 'stopped' and not 'stop'?

if (['ZNCLDJ12LM', 'ZNCLDJ14LM'].includes(model.model)) lookup = {0: 'closing', 1: 'opening', 2: 'stop'};

Hello @Koenkk I can confirm this for ZNCLDJ12LM. The state for this one is still opening or closing even when the motor is currently stopped. Please push fix for this also. Thanks in advance.

Quickly fixed that for you. https://github.com/Koenkk/zigbee-herdsman-converters/pull/7483

burmistrzak avatar May 03 '24 17:05 burmistrzak

When is this expected to be picked up in the main add-on? Would prefer not to swap to dev if I can help it to avoid any future headaches. Thanks for the incredible work!

GoodnessJSON avatar May 04 '24 02:05 GoodnessJSON

When is this expected to be picked up in the main add-on? Would prefer not to swap to dev if I can help it to avoid any future headaches. Thanks for the incredible work!

Well, that's totally up to @Koenkk 🔮, but dev isn't that scary. Running it myself. 😎

burmistrzak avatar May 04 '24 02:05 burmistrzak

I will probably do a hotfix release in the coming days, but good that this is fixed now!

Changes will be available in the dev branch in a few hours from now.

Koenkk avatar May 04 '24 07:05 Koenkk

@Koenkk I just tried using the dev branch and it looks like this issue is fixed, however I've run into another problem. I'm now seeing this in my logs when I only open my blinds partway:

Payload is not supported (e.g. open, closed, opening, closing, stopped): pause

Should I open a new ticket or should we reopen this one since it's related to the update?

clowncracker avatar May 05 '24 22:05 clowncracker

I just tried using the dev branch and it looks like this issue is fixed, however I've run into another problem. I'm now seeing this in my logs when I only open my blinds partway:

Payload is not supported (e.g. open, closed, opening, closing, stopped): pause

Should I open a new ticket or should we reopen this one since it's related to the update?

@clowncracker What's the exact zigbeeModel of your device?

burmistrzak avatar May 05 '24 23:05 burmistrzak

I just tried using the dev branch and it looks like this issue is fixed, however I've run into another problem. I'm now seeing this in my logs when I only open my blinds partway: Payload is not supported (e.g. open, closed, opening, closing, stopped): pause Should I open a new ticket or should we reopen this one since it's related to the update?

@clowncracker What's the exact zigbeeModel of your device?

lumi.curtain.acn002

clowncracker avatar May 05 '24 23:05 clowncracker

I just tried using the dev branch and it looks like this issue is fixed, however I've run into another problem. I'm now seeing this in my logs when I only open my blinds partway: Payload is not supported (e.g. open, closed, opening, closing, stopped): pause Should I open a new ticket or should we reopen this one since it's related to the update?

@clowncracker What's the exact zigbeeModel of your device?

lumi.curtain.acn002

And the exact commit/version of your Z2M install?

burmistrzak avatar May 06 '24 00:05 burmistrzak

I just tried using the dev branch and it looks like this issue is fixed, however I've run into another problem. I'm now seeing this in my logs when I only open my blinds partway: Payload is not supported (e.g. open, closed, opening, closing, stopped): pause Should I open a new ticket or should we reopen this one since it's related to the update?

@clowncracker What's the exact zigbeeModel of your device?

lumi.curtain.acn002

And the exact commit/version of your Z2M install?

1.37.0-dev commit: 358e2ee

clowncracker avatar May 06 '24 00:05 clowncracker

@clowncracker Hmm, it's possible that your HA configuration still has the old position values saved/discovered?

The specific model you've mentioned seems to be already fixed.

There's currently only one model that still exposes pause.

burmistrzak avatar May 06 '24 00:05 burmistrzak

With latest 1.37.0-dev commit: 358e2ee the state is again not showed anymore.

In Z2M it is shown, but in home assistant the state shows as unavailable.

fir3drag0n avatar May 06 '24 05:05 fir3drag0n

Payload is not supported (e.g. open, closed, opening, closing, stopped): pause

When is this logged?

Koenkk avatar May 06 '24 18:05 Koenkk

Payload is not supported (e.g. open, closed, opening, closing, stopped): pause

When is this logged?

I'm no longer having this issue. I think that @burmistrzak was correct, I think the status was just cached. Moving the blinds back to closed and then opening them again partway solved the issue.

clowncracker avatar May 06 '24 19:05 clowncracker