openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601, BL602 and LN882H
https://openbekeniot.github.io/webapp/devicesList.html
1.42k stars 249 forks source link

CHT831X alert add humidity #1310

Closed NonPIayerCharacter closed 1 month ago

NonPIayerCharacter commented 1 month ago

Added humidity to alert configuration. On driver init, will read status register and log what triggered the alert. (https://github.com/NonPIayerCharacter/OpenBK7231T_App/blob/7c5fd07de0011c88eb8293b7ad91987b2ecda2ee/src/driver/drv_cht8305.c#L257) Update docs, taken from #1302

openshwprojects commented 1 month ago

Thank you, however, I had to downgrade switch to if to support older compilers, can you solve merge issues? Once done, I think I can merge it.

NonPIayerCharacter commented 1 month ago

Decided to use switch (without case x ... y:), and if input value is wrong - just print a warning and select default. Should be a little faster and more lightweight than if/else.

github-actions[bot] commented 1 month ago

:tada: This PR is included in version 1.17.662 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: