Hello @Ernst , I must say you did an incredible job in this integration and the supported device list is amazing. This is only integration I found that supports the new Inkbird IBS-TH2 devices.
I am currently setting it up first time and I have few of the Xiaomi custom firmware sensors and also two Inkbird IBS-TH2 sensors. One is the temp and humidity (identified as sps, and one is temperature only identified as tps). The sps sensor got integrated and discovered easily with the integration. However the tps sensor is not found. Maybe you encountered this issue beforeā¦
What I tried:
1 . adding the sensor via the UI in integration configure, then way for 24hrs. I do not see it in debug logs nor in the list of devices. It was never parsed.
2. I tried to add it via the ESP BLE Gateway and its automation. The mac address is scanned and packet is passed for parsing. But as in previous case, I do not see the device appearing nor any error in logs.
The only difference is that the device not picking up, is temperature only version of the same Inkbord IBS-TH2
Is there something I can try to dig in the logs that would help why is it not showing up ? Can I somehow parse the packet easily to see if there is any issue with that ? But I don;t see errors in logs, so not sure where to look now.
In the FAQ on github there are instructions how to add a new device. I remember that the ble parser filters on āspsā, so thatās probably the reason it isnāt found. If you can give some ble advertisements of this device, I can add it, most likely
Let me know how can I help. I see few different packets sent.
And these are ones I believe come from the unknown advertisements of the integration
2022-03-04 15:53:48 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1c02010400561d000742491004097470730affff0700000031603306c2
2022-03-04 15:53:49 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc7
2022-03-04 15:53:49 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1c02010400561d000742491004097470730affff0700000031603306c8
2022-03-04 15:53:50 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc8
2022-03-04 15:53:50 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1c02010400561d000742491004097470730affff0700000031603306c7
2022-03-04 15:53:51 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc7
2022-03-04 15:53:51 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1c02010400561d000742491004097470730affff0700000031603306c7
2022-03-04 15:53:52 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc5
2022-03-04 15:53:52 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1c02010400561d000742491004097470730affff0700000031603306c5
2022-03-04 15:53:52 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc7
2022-03-04 15:53:52 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1c02010400561d000742491004097470730affff0700000031603306c6
2022-03-04 15:53:53 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc2
2022-03-04 15:53:53 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1c02010400561d000742491004097470730affff0700000031603306c2
2022-03-04 15:53:53 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc8
2022-03-04 15:53:53 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1c02010400561d000742491004097470730affff0700000031603306c7
2022-03-04 15:53:54 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc2
2022-03-04 15:53:54 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1c02010400561d000742491004097470730affff0700000031603306c2
2022-03-04 15:53:55 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc2
2022-03-04 15:53:55 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1c02010400561d000742491004097470730affff0700000031603306c2
2022-03-04 15:53:55 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc7
2022-03-04 15:53:57 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc5
2022-03-04 15:53:57 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1c02010400561d000742491004097470730affff0700000031603306c5
2022-03-04 15:53:57 INFO (MainThread) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e2302010000561d00074249170201060302f0ff04097470730affff0700000031603306b4
2022-03-04 15:53:58 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc5
2022-03-04 15:53:58 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc2
2022-03-04 15:53:58 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1c02010400561d000742491004097470730affff0700000031603306c2
2022-03-04 15:53:59 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc2
2022-03-04 15:53:59 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1c02010400561d000742491004097470730affff0700000031603306c2
2022-03-04 15:54:00 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc5
2022-03-04 15:54:00 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1c02010400561d000742491004097470730affff0700000031603306c5
2022-03-04 15:54:00 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc2
2022-03-04 15:54:00 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1c02010400561d000742491004097470730affff0700000031603306c2
2022-03-04 15:54:02 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc8
2022-03-04 15:54:02 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1c02010400561d000742491004097470730affff0700000031603306c7
2022-03-04 15:54:02 INFO (Thread-7) [custom_components.ble_monitor.ble_parser] Unknown advertisement received: 043e1302010000561d00074249070201060302f0ffc2
based on the reverse MAC address embedded.
By the way when I just manually changed the custom component in HA
(complete_local_name == "sps" or complete_local_name == "tps")
it picked it up. of course it tries to parse humidity, which this sensor does not support (only temperature). But the message format appears to be same.
so i got this working for one inkbird sensor and works great but has anyone got this working with other non supported inkbird sensors or even the inkbird gateway IBS-M!? currently have the gateway working through local tuya but temps are never accurate for some reason so maybe this would be better option
@OscarHanzely Do you have a link to this device. Is it really called a IBS-TH2? Iām asking as I have to add a device type, and TH stands for Temperature and Humidity. If it doesnāt support Humidity, its probably called something else.
Edit: As I read here, a firmware fix could fix the missing Humidity and make your device a proper TH2.
Hi Ernst, yes it is the IBS-TH2, itās essentially the same device. The box and stickers are the same.
Honestly, I bought it as a temperature sensor because it goes into my freezer and I only care about the temperature, so I am not going to be soldering and upgrading firmware at the moment. But youāre right the HW is the same, itās likely just the firmware. They sell it cheaperā¦
I may do a firmware upgrade later down the road, but its not important for me at the moment.
Thank you so much! I see the code got updated and the temperature sensor works. Appreciate your incredibly fast response. By the way is there a way to support project other than the github sponsorship ? I had hard time getting that through and it is only $2 one time support.
Thanks
No worries, we do that too. If you ever set it up as recurring sponsorship on Github, not just a one-time fee, I will join for sure. Itās just an appreciation and support of creators in the open-source community. You are really maintaining a pretty important plugin.
ok, you convinced me Added more possibilities to sponsor me with custom amounts and monthly amounts. Thanks for your appreciation for the work that has been done, also by others.
Hey! Because of a problem with hacs I have to reinstall every custom_component. I want to know if itās possible to get either the encryption keys or all devices which are already set up in the BLE integration, so I donāt have to reset every device after the reinstall.
Thanks in advance!
You can enable debug logging for BLE monitor at debug level, which will show your settings in the log. This will show your settings, including the encryption keys, if the integration is still working. But you will have to add them sensor by sensor, if you donāt have a HA backup.
Hi @Ernst, Thanks so much for all of your effort! Itās amazing.
Iām trying to integrate a Smoke sensor (JTYJGD03MI) and it seems itāll be too far away from the RPI running HA.
Is it possible using an ESP32 as a relay? if so, is it possible using ESPHome?
Thanks!
Yes, that is possible, by using ESPhome BLE Gateway. The is even a special page on BLE monitorās GitHub, see Parse data from ESPHome - Passive BLE Monitor integration. It forwards BLE messages from the ESPhome to BLE monitor over WiFi.
Thanks @Ernst, Iāve seen this but Iām probably missing something.
The packet itself is received in ESP32 and is printed in the log itself. Moreover, I see the automation being triggered in HA - but thatās it.
Calling the service both from the automation and manually does not seem to do anything. I could not find documentation that would explain whatās the service (parse_data) output, and so I canāt tell where the issue is.
Moreover, I could not find where in this service call I should add the BLE encryption key, as itās needed for decoding the advertisements of this deviceā¦ Can you please advise?
As far as I know, it doesnāt need an encryption key. But if you see an error in the logs about a missing encryption key in the logs, I might be wrong.
Anyway, can you create an issue on github to discuss further? Also post a BLE advertisement in that issue, so I can look into it.
The service needs an BLE advertisement as input, the output is that the sensor in HA is added and/or updated