Skip to content

Conversation

@olaf-mandel
Copy link

On FRITZ!OS < 7.20, the DECT440 is reported with functionsbitmask containing the HUMIDITY feature, but the device-node does not actually contain that element. So patch the functionsbitmask if that situation is detected.

On FRITZ!OS < 7.20, the DECT440 is reported with `functionsbitmask`
containing the `HUMIDITY` feature, but the device-node does not actually
contain that element. So patch the `functionsbitmask` if that situation
is detected.
Comment on lines +45 to +50
# Workaround for broken AVM FRITZ!DECT 440 in FRITZ!OS < 7.20
if (node.attrib["manufacturer"] == "AVM"
and node.attrib["productname"] == "FRITZ!DECT 440"
and node.find("humidity") is None):
self._functionsbitmask &= ~int(FritzhomeDeviceFeatures.HUMIDITY)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Workaround for broken AVM FRITZ!DECT 440 in FRITZ!OS < 7.20
if (node.attrib["manufacturer"] == "AVM"
and node.attrib["productname"] == "FRITZ!DECT 440"
and node.find("humidity") is None):
self._functionsbitmask &= ~int(FritzhomeDeviceFeatures.HUMIDITY)
# Workaround for broken AVM FRITZ!DECT 440 in FRITZ!OS < 7.24
if (self._has_feature(FritzhomeDeviceFeatures.HUMIDITY)
and node.find("humidity") is None):
self._functionsbitmask &= ~int(FritzhomeDeviceFeatures.HUMIDITY)

we should never rely on product or manufacturer names, they can change (see the latest issues with SMA devices after fritzbox update which changed the device names of all dect products)
Please test if this suggestions works for you

@mib1185 mib1185 marked this pull request as draft January 19, 2025 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants