Skip to content

fix: setProps for those who redefine their own characteristic properties

Compare
Choose a tag to compare
@ztalbot2000 ztalbot2000 released this 27 Jan 20:04
· 30 commits to master since this release

This is a very minor fix as nobody has used this feature in a long time.
If you redefine your characteristics properties they must be formatted like:

    props: { 
         currentTemperature: { maxValue:32, minValue:1}, 
         targetTemperature: {maxValue:32, minValue:1}
    }

There was a bug that predefined the object and this feature was not documented properly. Also a unit test was implemented to test if the actually properties were changed.

Note: while Cmd4 allows you to change the properties and Homebridge accepts this; That is not to say that the HomeKit GUI will respect them.