Home-Is-Where-You-Hang-Your-Hack / sensor.goveetemp_bt_hci

Govee Temperature/Humidity BLE Home Assistant Component
MIT License
161 stars 29 forks source link

Govee H5074 Data Not Parsing #11

Closed mdframe closed 4 years ago

mdframe commented 4 years ago

I recently found the custom component and am trying to learn from it to read bluetooth devices. {Thanks for the hard work!} I purchased a Govee H5074 and H5075. The H5075 started showing readings right away. The H5074 is only showing the entity and never provided any values. I have been trying to debug the information but without any luck I cannot see why this does not work.

Here are the specifics of my setup and values from the log:

Log details: 2020-07-04 10:40:56 DEBUG (SyncWorker_3) [custom_components.govee_ble_hci.sensor] NEW DATA: {'rssi': -74, 'mac': 'A4C1389B4297', 'temperature': 25.6401, 'humidity': 40.1, 'battery': 100.0, 'packet': 256401} 2020-07-04 10:39:55 DEBUG (SyncWorker_13) [custom_components.govee_ble_hci.sensor] Starting 2020-07-04 10:39:55 DEBUG (SyncWorker_13) [custom_components.govee_ble_hci.sensor] Start receiving broadcasts 2020-07-04 10:39:55 DEBUG (SyncWorker_13) [custom_components.govee_ble_hci.sensor] [OrderedDict([('mac', 'E3:37:3C:52:D0:B9'), ('name', 'Govee Game Room')]), OrderedDict([('mac', 'A4:C1:38:9B:42:97'), ('name', 'Govee Office')])] 2020-07-04 10:39:55 DEBUG (SyncWorker_13) [custom_components.govee_ble_hci.sensor] update_ble called 2020-07-04 10:39:55 DEBUG (SyncWorker_13) [custom_components.govee_ble_hci.sensor] Discovering Bluetooth LE devices 2020-07-04 10:39:55 DEBUG (SyncWorker_13) [custom_components.govee_ble_hci.sensor] Stopping 2020-07-04 10:39:55 DEBUG (SyncWorker_13) [custom_components.govee_ble_hci.sensor] Stop receiving broadcasts 2020-07-04 10:39:55 DEBUG (SyncWorker_13) [custom_components.govee_ble_hci.sensor] Analyzing 2020-07-04 10:39:55 DEBUG (SyncWorker_13) [custom_components.govee_ble_hci.sensor] {'E3373C52D0B9': 'Govee Game Room', 'A4C1389B4297': 'Govee Office'} 2020-07-04 10:39:55 DEBUG (SyncWorker_13) [custom_components.govee_ble_hci.sensor] reading hcidump... 2020-07-04 10:39:55 DEBUG (SyncWorker_13) [custom_components.govee_ble_hci.sensor] 2020-07-04 10:39:55 DEBUG (SyncWorker_13) [custom_components.govee_ble_hci.sensor] Start receiving broadcasts 2020-07-04 10:39:55 DEBUG (SyncWorker_13) [custom_components.govee_ble_hci.sensor] [OrderedDict([('mac', 'E3:37:3C:52:D0:B9'), ('name', 'Govee Game Room')]), OrderedDict([('mac', 'A4:C1:38:9B:42:97'), ('name', 'Govee Office')])] 2020-07-04 10:40:56 DEBUG (SyncWorker_3) [custom_components.govee_ble_hci.sensor] update_ble called 2020-07-04 10:40:56 DEBUG (SyncWorker_3) [custom_components.govee_ble_hci.sensor] Discovering Bluetooth LE devices 2020-07-04 10:40:56 DEBUG (SyncWorker_3) [custom_components.govee_ble_hci.sensor] Stopping 2020-07-04 10:40:56 DEBUG (SyncWorker_3) [custom_components.govee_ble_hci.sensor] Stop receiving broadcasts 2020-07-04 10:40:56 DEBUG (SyncWorker_3) [custom_components.govee_ble_hci.sensor] Analyzing 2020-07-04 10:40:56 DEBUG (SyncWorker_3) [custom_components.govee_ble_hci.sensor] {'E3373C52D0B9': 'Govee Game Room', 'A4C1389B4297': 'Govee Office'} 2020-07-04 10:40:56 DEBUG (SyncWorker_3) [custom_components.govee_ble_hci.sensor] reading hcidump... 2020-07-04 10:40:56 DEBUG (SyncWorker_3) [custom_components.govee_ble_hci.sensor] HCIsniffer-Bluetoothpacketanalyzerver5.52device:hci0snap_len:1500filter:0x2 . data dumps . 2020-07-04 10:40:56 DEBUG (SyncWorker_3) [custom_components.govee_ble_hci.sensor] 043E28020100016BA2249878CA1C0201060AFF5D05000201010B06000D094C48422D4330353645354143B0 2020-07-04 10:40:56 DEBUG (SyncWorker_3) [custom_components.govee_ble_hci.sensor] 043E2902010000B9D0523C37E31D02010607030A18F5FE88EC1109476F7665655F48353037345F44304239B2 2020-07-04 10:40:56 DEBUG (SyncWorker_3) [custom_components.govee_ble_hci.sensor] 043E2802010001D67F8C0B23D61C0201060AFF5D0500020B010B06000D094C48422D3646434530434433B0 . . {GVH5075 Reports Correctly} 2020-07-04 10:40:56 DEBUG (SyncWorker_3) [custom_components.govee_ble_hci.sensor] NEW DATA: {'rssi': -77, 'mac': 'A4C1389B4297', 'temperature': 25.64, 'humidity': 40.0, 'battery': 100.0, 'packet': 256400}

Data is never parsed for the H5074 for some reason.

Any thoughts on what I may need in my setup of change for the existing code to receive values for the H5074?

Thx

Thrilleratplay commented 4 years ago

@mdframe The H5074 is always more finicky for some reason. There are four broadcast the H5074 sends out. The one that contains the relevant information is only 52 characters long but does not always appear for some people. First thing to try is add hcitool_active: True and restart the service. If that does not work, reboot the device.

mdframe commented 4 years ago

Thank you! I added the hci_active and period of 60 did a restart of Home Assistant and the device and I now see the values. I appreciate the support and help.