SNZB-02D - add support for comfort levels and temperature units. #8684
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds support for setting the temperature and humidity comfort levels, in addition to setting the display temperature units (Celsius/Fahrenheit) on the Sonoff SNZB-02D. Depending on these values, icons are displayed on the device as shown below:
The properties are exposed in the Z2M UI as shown below:
Note that the button on the back of the device needs to be pressed before changing the values in the Z2M UI. Not entirely sure why (presumably to wake it up to receive commands), the device sends a ZCL "On/Off: Toggle" command when the button is pressed. This is the same behaviour when using the Sonoff Bridge and the eWeLink app (the app waits for the button press before writing attributes to the device).