h4 / lywsd02

MIT License
172 stars 35 forks source link

Notes on setting 'comfortable temp and humidity' levels #22

Open JamoDevNich opened 4 years ago

JamoDevNich commented 4 years ago

I did some research into this device a while back and found how to set the "Comfortable Temp and Humidity" levels.

These are just cosmetic settings that control how the face on the LCD changes its expression. As long as both the temperature and humidity are within the ranges specified by the user, the face expression will be ^_^. If either is outside the ranges, the face expression will be -^-.

Thought I'll pop this here in-case anyone is interested in this.

UUID: ebe0ccd7-7a0a-4b0c-8a1a-6ff2997da3a6 Handle: 43

Adjust the thresholds at which the facial expression on the device will change

Read Command: char-read-hnd 43 Write Command: char-write-req 8c0a6c075514 Response:

         DEC:             85 20
Response HEX: 8c 0a 6c 07 55 14
               |  |  |  |  |  |
               |  |  |  |  |  Min Humidity
               |  |  |  |  Max Humidity
               |  |  |  Min Temperature (Little Endian byteorder)
               |  |  Min Temperature (Little Endian byteorder)
               |  Max Temperature (Little Endian byteorder)
               Max Temperature (Little Endian byteorder)

In the response above: Min Humidity = 20%, Max Humidity = 85%, Min Temperature = 19.00degC, Max Temp = 27.00degC

After writing a value, the device will update the on-screen facial expression when its sensor reading changes.

53RT commented 4 years ago

Found a matching image showing the default values in the review linked in #21.

state matrix