Do you know how to connect CGSPR1 to HA? Apparently it has an ESP32 module in it. But how to connect it with HA?
I dont know, never tried it.
I even bought the damn device but plain esp32 with espHome is too good to even bother trying
As it comes, I don’t think you can. I took mine apart (destroying it in the process) and indeed it is a power supply and an esp32 in there. You’d effectively need to destroy it to reach the programming pins.
With a little more care you could probably take it apart and replace the case with something 3D printed.
Why do this? Well it would be a great at communicating with ble devices using esphome. Nice case, compact, built in power supply, standard esp32 chip. But unless someone can find an OTA flashing method, it is physically tricky.
I think what we all really need is a nice mass-produced case for ESP32 boards that is not 3D printed…like the Flirc case for the Raspberry Pis, just something we can throw 5-10 bucks at and declare the problem solved in a beautiful way. Their Pi Zero case looks stunning, not sure how it affects Bluetooth/WiFi range considering all the aluminum, but I would really love something like that.
Also an ESP32 with a LAN port that doesn’t cost a ton of money, but that’s another story
I think Xiaomi is really heading in a direction of closing access to all their non-Zigbee stuff, which is a shame…
It is the inclusion of the power supply and esp32 in one simple little wall wart that I think is good.
And tuya is starting to put non esp8266 chips in their devices. GRRRRRRR
WHat we need to do in the absence of someone injection moulding a case is to find a donor device that is easy to open and has a good WAF.
Something that can be opened with screws (i am thinking like the Kogan smart plugs) - strip out the inside and put in a USB to mains adapter and ESP32.
I am going to scout around our place and see what i have lying around
Craig
Case and power 12V gateway - http://lock.3dn.ru/news/dorabotka_shljuza_xiaomi_cgspr1_bluetooth_wi_fi_gateway/2020-08-23-192
I was able to connect HA to a CG gateway using the Xiaomi Miio integration. I retrieved the token using bluestacks. No entities have been autodiscovered. Unfortunately, I only have miflora plant sensors and these are not yet in the X Miio integration, so I don’t know whether the autodiscovery works or not.
Also connected Cleargrass BLE gateway CGSPR1 through Xiaomi Miio integration, no new devices were added. In MiHome he sees all my 8 temperature and humidity sensors LYWSD03MMC and Cleargrass CGD1 alarm clock without any problems. It would be convenient to integrate it into HA.
How did you manage to connect the gateway in more detail?
How did you connect the gateway to the HA?
Through integration, but it does nothing.
The integration adds support for another gateway. As a result, your gateway cgllc.gateway.s1 is not defined in the HA and therefore cannot work.
Of course, I found that BT sensors can be connected via a BT dongle( sensor.mitemp_bt ), but this solution seems to me not the best. Judging by how the dongle is loaded.
Yes, integration simply adds an entity that does nothing (perhaps for now). I added it just in case something changes, I will see new entities.
I did, all my sensors work perfectly.
I have already tried different methods. This gateway cannot be integrated into Home Assistant.
Forgive me for the delay in answering. I have not kept trying to unmount the device. In the end it has been easier and cheaper for me to put a mini esp32 inside my clock radio with the configuration of all the temperature sensors in the rooms. The invention is not visible but it is effective.
Health.
What does it mean, would you give me detailed description about how I can do it too?
"put a mini esp32 inside my clock radio with the configuration of all the temperature sensors in the rooms"
thank you.
esphome would be the easiest way.
Hi, found that recently it is possible to connect Qingping Bluetooth Gateway via MQTT (developer site https://developer.qingping.co/ ). As a result, the gateway sends data about itself and the sensors that are connected to it, like this:
{
“id”: 37657,
“type”: “9”,
“mac”: “XXXXXXXXXXX”,
“adv_data”: “0201061416CDFDC812AA3C60342D58080401B900000F01B4”,
“rssi”: “-81”
}
With the data from the Door/Window Contact Sensor (CGH1) I created a binary sensor that changes its state depending on the “mac” and “adv_data” string received in MQTT. The same for the Motion & Light Sensor (CGPR1), but I don’t know how to decode the Illuminance values. Given my too little knowledge I want to ask if there is someone who has worked in this direction? Ideally to have the sensors automatically created in HA and display their state?