mheistermann / esphome-component-rcxazair

MIT License
1 stars 1 forks source link

0x23081007 message type support for PM sensors #4

Closed KittyFort closed 9 months ago

KittyFort commented 9 months ago

This is a minimal set of changes needed to add support for PM sensors on RCXAZ air quality sensors which include particulate matter sensor values.

I honestly can't say for sure if this starts in 9-in-1 or 11-in-1 models because they count things like clocks and calendars in the number of available "sensors".

It appears that models with newer sensors just send the data from the added sensors in different message types. This means newer models will share sensor message formatting for previously-supported sensors. There's no guarantee it'll always work this way, but it's helpful as is.

One interesting thing to note is that ESPHome constants include ICON_MOLECULE_CO2 but not ICON_MOLECULE for some reason.

KittyFort commented 9 months ago

Linking to issue #3 which is the reason for this PR and provides a lot of technical data.

mheistermann commented 9 months ago

Thanks for your continued efforts!

KittyFort commented 9 months ago

Glad to help. This brings us up-to-date with the latest RCXAZ BT air quality sensor hardware I have on hand.

I'm thinking about a way of doing some hardware documentation somewhere by pulling the information out of the issue - as well as checking to see if some additional changes I'd made that weren't strictly necessary might be helpful for the project in general. No rush, but I'll probably pull some of those out for discussion in an issue and maybe PR them later.