Skip to content

UINT8 doesn't allow 0xff (255) as value anymore which breaks code #1498

@DerDreschner

Description

@DerDreschner

With in the latest releases of Z2M, there must have been a change in the code regarding processing of messages with UINT8. This leads to the situation, that 255 isn't a valid value anymore, although it is valid, and it's been used multiple times (see for example).

I realized that when I implemented this pull request, I didn't get any value regarding the light settings as well as the maximumBrightness attribute, which allows 255 as a valid value as well (it's actually the default value). The meta attribute contains the correct byte values in that case, but I'm not sure if that was after some changes in zigbee-herdsman or not. I'm not the only person who realized the issue. See Koenkk/zigbee2mqtt#28506 for example.

Is this a bug in zigbee-herdsman or do all converters that need to process 0xff as a valid value have to be changed to the raw message type?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions