question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Domoticz 14567: Blinds commands changed

See original GitHub issue

With latest betas of Domoticz the Blinds behavior has been changed.:

Before the percentage info is translated to the following commands:

% Command 0: Off 1: Set Level 99: Set Level 100: On

In the ‘current’ new situation the translation is as follows:

% Command 0: Close 1: Set Level 99: Set Level 100: Open

This will now result in next message when ‘Open’ or ‘Close’ action is given:

okt 14 11:34:24 domoticz npm[2337]: Zigbee2MQTT:error 2022-10-14 11:34:24: Invalid message 'null', skipping...

Solution is to adapt next source-file of plugin:

zigbee2mqtt\devices\switch\blind_percentage_switch.py

Change 'cmd == ‘ON’ into 'cmd == ‘CLOSE’ Change 'cmd == ‘OFF’ into 'cmd == ‘OPEN’

Zigbee2MQTT version: v1.27.2 Python version: 3.7.3 Domoticz version: 14567 Plugin version: V3.2.0-beta

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
platte-73commented, Nov 11, 2022

With latest betas of Domoticz the Blinds behavior has been changed.:

Before the percentage info is translated to the following commands:

% Command 0: Off 1: Set Level 99: Set Level 100: On

In the ‘current’ new situation the translation is as follows:

% Command 0: Close 1: Set Level 99: Set Level 100: Open

This will now result in next message when ‘Open’ or ‘Close’ action is given:

okt 14 11:34:24 domoticz npm[2337]: Zigbee2MQTT:error 2022-10-14 11:34:24: Invalid message 'null', skipping...

Solution is to adapt next source-file of plugin:

zigbee2mqtt\devices\switch\blind_percentage_switch.py

Change 'cmd == ‘ON’ into 'cmd == ‘CLOSE’ Change 'cmd == ‘OFF’ into 'cmd == ‘OPEN’

Zigbee2MQTT version: v1.27.2 Python version: 3.7.3 Domoticz version: 14567 Plugin version: V3.2.0-beta

This was also the solution for me. Only thing is the slider dont show the percentage anymore. If it’s half way its showing open or close

1reaction
HenriMatthijssencommented, Oct 23, 2022

Probably solution should be made more generic by checking Domoticz Version to which value ‘cmd’ should check. I believe that since 14549 the blind commands changed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Domoticz version table V2022.1
Build Date Type 14600 20221105 Build 14594 20221102 Mercedes EV 14592 20221102 MQTT‑AD
Read more >
blinds reversed after latest update - Domoticz
I have got the same issue. After update 14498 all my blinds are working reversed. My blind switchs are inverted. So i changed...
Read more >
Inverted blinds now has inverted commands - Domoticz
I did try to change the device from Inverted Blinds to Blinds, but then the state in Domoticz itself shows 'Open' when the...
Read more >
Blinds with command inverted since 2022.2 - Domoticz
Type set to 'Blinds' Changing the type shows an extra slider, but this isn't working. Can't slide it. Toggling the 'reverse position' ...
Read more >
Blinds - Domoticz
Slider 0 = Blind Close in GUI, dzvents, Lua, http API and Python when using setLevel. Status = Closed 100 = Blind Open...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found