-
-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Govee H5178 #440
Comments
I've added H5178 to the tests branch, with a second (outdoor) temperature and humidity sensor. I'm not sure the battery(/ies) will work ok, as I only have one battery sensor for now. It might mix the measurements of the two, if both report individual values. Edit: Ready for testing, added in 4.2.1-beta. @Thrilleratplay could you do a check (as far as possible). I just added the 00/01, like explained in the PR on goveetemp_bt_hci by @noah-holland to a H5102 advertisement. Or maybe @noah-holland is willing to test?
|
@Ernst79 Were you asking me to check if the other Govee devices still work with 4.2.1-beta? They do. |
I was actually asking if you wanted to do a check of the H5178. I understand you don't have this device, so it would be better is @noah-holland could do the check. But I'm not sure he/she will read this and if he/she is prepared to move from govee_bt_hci to ble_monitor. I'll just wait a couple of days and will merge if I don't get a response. |
I decided to purchase the H5178. I am using a H5074 for my outdoor temperature and it seems to be susceptible to direct sunlight so I'll see if this works any better. I'll test it out and let you know. |
I apologize, I've been away from home for the past two weeks. I can get you the HCI advertisement later today (my work day has just started). I'd be happy to test the beta as well. |
@noah-holland No problem, glad you are willing to test 😄 You can first try with 4.2.2-beta, it might already work (I tried to add it based on your PR for govee_bt_hci). If not, please send me an hcidump for this sensor and I will add it. |
@Ernst79 I am not seeing the sensor in discovery or the logs. I created a gist with the hcidump containing the lines with that device's mac address https://gist.github.com/Thrilleratplay/f66a61ef34fbf7826008c7b1d4b58418 |
Fixed it in 4.2.3-beta. I had the length byte wrong. |
@Ernst79 Working now. Thank you. Although, I only see one battery entity but not sure if that is broadcasted separately or if @noah-holland had that working for the Govee integration. Sorry, I've been busy the past few days to look into this myself. |
No problem. I created only one battery sensor. as I'm not sure about the battery either. It the commit of @noah-holland, I only see temperature and humidity as separate sensors, but I think it adds the battery per device as an attribute. The RSSI and battery seem to report the same value for both, but as battery is 100%, it is not possible to say if it is the battery per sensor not. Perhaps we can find out later, when the battery is a bit more empty. Creating a separate battery is a bit more difficult, as it isn't only used as a sensor, but also as the attribute of each sensor. I'll release the current status, we can always change it later. |
From @Thrilleratplay in #386
There is another Govee device, H5178, that has an open PR for sensor.goveetemp_bt_hci, which may not be as easy to integrate. It is a multiple sensor device, there is a display with a temperature humidity sensor then a second temperature humidity sensor that, I believe, communicates via RF. The display broadcast the information via BLE for both sensors but only uses one MAC address.
This will require to make two Temperature/humidity and possibly battery/voltage sensors for one mac, which can be a bit tricky. Done that before for the Kegtron devices with two ports, but for that device, I just created two sensor classes,
The text was updated successfully, but these errors were encountered: