Skip to content

Issuing 'moveWithOnOff' command for 'genLevelCtrl' cluster failsΒ #30518

@theorlangur

Description

@theorlangur

What happened?

In my HomeAssistant automations I'm issuing move with On/Off command to a group of devices (zigbee group).
It was working before z2m 2.7.2.
The payload was (formatted for convenience):

{"command":
     {
            "cluster":"genLevelCtrl",
            "command":"moveWithOnOff"
            ,"payload":{"movemode":1,"rate":65}
     }
}

Now this doesn't work since new payload parameters were introduced (according to spec, I know): optionsMask and optionsOverride.
z2m was complainting on the absence of those, so I added them with 0s like so:

{"command":
     {
            "cluster":"genLevelCtrl",
            "command":"moveWithOnOff"
            ,"payload":{"movemode":1,"rate":65, "optionsMask":0, "optionsOverride":0}
     }
}

z2m stopped complaining about missing parameters but I'm still getting a

z2m: Invalid message 'undefined', skipping...

and the command is not issued.
I can see in logs that my request is received:

[2026-01-05 19:25:55] debug: 	z2m:mqtt: Received MQTT message on 'zigbee2mqtt/Living Window Lights/set' with data '{"command":{"cluster":"genLevelCtrl","command":"moveWithOnOff","payload":{"movemode":1,"rate":'65', "optionsMask":'0', "optionsOverride":'0'}}}'

I'm not sure what it doesn't like and what can I do about it.
A little help, please?
Also it would be nice if missing parameters in the payload would be provided by the z2m setting them to their respective defaults.

This change of behavior came with commit: 685a781be
from a pull-request:
Koenkk/zigbee-herdsman-converters#10983

What did you expect to happen?

after providing missing optionsMask and optionsOverride I would expect the command to be issued.

How to reproduce it (minimal and precise)

try publishing at a MQTT zigbee2mqtt/<light bulb with genLevelCtrl>/set with the following payload:

{"command":{"cluster":"genLevelCtrl","command":"moveWithOnOff","payload":{"movemode":1,"rate":65, "optionsMask":0, "optionsOverride":0}}}

note: movemode: 0 - up, 1 - down

Zigbee2MQTT version

2.7.2

Adapter firmware version

7.4.4

Adapter

sonoff zb-dongle e

Setup

addon in HomeAssistant

Device database.db entry

No response

Debug log

No response

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    problemSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions