Skip to content

H5178 and multi-sensor device support#42

Open
noah-holland wants to merge 2 commits intoHome-Is-Where-You-Hang-Your-Hack:masterfrom
noah-holland:working
Open

H5178 and multi-sensor device support#42
noah-holland wants to merge 2 commits intoHome-Is-Where-You-Hang-Your-Hack:masterfrom
noah-holland:working

Conversation

@noah-holland
Copy link

@noah-holland noah-holland commented May 22, 2021

This adds support for devices with "more than one sensor", like the H5178 which has an outdoor module that reports to the base unit.

It also adds specific decoding support for the H5178. The unit acts similarly to H5101/H5102, but has a byte preceding the temperature/humidity payload that seems to differentiate which sensor module the data is for (in this case 00 for the base unit, 01 for the outdoor module).

@noah-holland
Copy link
Author

noah-holland commented May 22, 2021

I didn't actually intend on creating a pull request quite yet, I'd like to let this sit for a couple days to confirm it doesn't blow up.

@Thrilleratplay
Copy link
Member

@noah-holland Thank you for the PR. I think I found what a H5178 is. Including this PR looks like it would alter the data storage name and effectively erase all historical data for existing devices. Because of this, I am hesitant to pull it in at the moment but understand the change. I am planning on rewriting this component which will require breaking changes; I will keep this device in mind when trying to create the data model and, if it is ok, will likely ask you to help test it when it gets to that stage

@noah-holland
Copy link
Author

Sounds good, I'll go ahead and close this PR then!

@Thrilleratplay
Copy link
Member

If it is ok with you, I would prefer to keep this open just so I do not forget about it. If not, feel free to close it again.

@Ernst79
Copy link

Ernst79 commented Jul 15, 2021

@noah-holland do you have a ble advertisement for this sensor. We are merging this integration into ble monitor and I would like to see the format of the ble advertisement from a hcidump to add it.

@Ernst79
Copy link

Ernst79 commented Jul 19, 2021

@noah-holland I've included the sensor in BLE monitor (4.2.1-beta).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants