#What would prevent setting an attribute from working?

1 messages · Page 1 of 1 (latest)

errant girder
#

I am trying to implement a quirk for ZHA, and it's for a device which is already supported in Z2M. I am trying to set an attribute which has settings available in Z2M, but I get an error writing (reading works). What could cause this?

brave zealot
#

Can you provide the quirk code? How are you writing the attribute? Through the "Manage Zigbee device" UI? If so, make sure the second text field is left empty (or try -1 for that). Enter the value you want to write in the first text field.

#

If there's already a PR in the zha-device-handlers repo. Even if it's draft/non-functional, please link it.

errant girder
#

I'm using the Manage Zigbee Device UI

#

I was experimenting by changing the OppleSwitchCluster to use something like this, since it seems the attribute id changed:
class NewOppleSwitchCluster(OppleSwitchCluster):
"""Xiaomi mfg cluster implementation."""

attributes = copy.deepcopy(OppleSwitchCluster.attributes)
attributes[0x0286] = attributes[0x0125]
del attributes[0x0125]