PlusPlus-ua / ha_tuya_ble

Home Assistant support for Tuya BLE devices
MIT License
165 stars 109 forks source link

Request for Gimdow A1 Max smart lock #46

Open mikekornikh opened 12 months ago

mikekornikh commented 12 months ago

Hi! I want to start by thanking you for the amazing work. I was also born in Ukraine, so I personally feel the terror you're going through. I'm hoping you can help integrate the Gimdow A1 Max smart lock here. I love this lock, and it's my really my only option for my rental apartment because it goes right over the included door lock. Here's a link to the product page https://www.gimdow.com/GIMDOW-A1.html

Product: A1 PRO MAX Device Information Product Name M515EGWT V2 Product Category cl

Any help would be greatly appreciated!

dmickeyus commented 2 months ago

Unfortunately, your image shown your device is uueg45qu which is not A1 PRO MAX, the code wont support it. I dont have this device but I believe it is similar but need a bit works.

TomekKazim commented 2 months ago

thank you, it works

liouma commented 2 months ago

I made some updates and hope it could do some help.

tuya_local_ble.zip

@dmickeyus Thanks for this new upload. Unfortunately my device is not recognized after upgrading the tuya_local_ble folded. I removed the device and after it is not discovered. I tried removing the folder, restart, add it again and restart, no sucess. At each step I checked that devices.json is correct. Any chance that something is missing in your zip file ? or maybe something changed since previous version ? Thanks

dmickeyus commented 2 months ago

I made some updates and hope it could do some help. tuya_local_ble.zip

@dmickeyus Thanks for this new upload. Unfortunately my device is not recognized after upgrading the tuya_local_ble folded. I removed the device and after it is not discovered. I tried removing the folder, restart, add it again and restart, no sucess. At each step I checked that devices.json is correct. Any chance that something is missing in your zip file ? or maybe something changed since previous version ? Thanks

Anything bad shown in log? Assume it was working previously, the json would be fine. Overwrite the folder and restart HA should works. BTW, what BLE you are using? If no discovery, most likely the connection between BLE and the lock, try restart the bluetooth.

domibroz commented 1 month ago

Hi. When I try to add Tuya Local BLE integration I'm getting not_implemented error. What could be a reason? image

dmickeyus commented 1 month ago

It should be automatically discovered from BLE when the json config file is matched with the device. Manual add button is not used.

brunoblazer commented 1 month ago

hello, Seeing if anyone can help me because I've been back from this for almost a week and I haven't achieved anything. I'll tell you what I did and see if I'm missing anything. I pasted the new tuya_local_ble folder into the correct custom_components and created the devices.json file the file I created was like this { "MAC DO FINGERBOOT": { "address": "MAC DO FINGERBOOT", "uuid": "UUID DO FINGERBOOT", "local_key": "LOCAL KEY DO FINGERBOOT", "device_id": "DEVICE ID FINGERBOOT", "category": "szjqr", "product_id": "xhf790if", "device_name": "CUBETOUCH II", "product_model": "CBTB3002", "product_name": "CUBETOUCH II" } }

When restarting, nothing is detected I didn't do anything other than restart the HA, if I'm adding equipment image

when clicking on add it gives the error: not_implemented

Do I need to do anything? insert your data somewhere like configuration or something?

liouma commented 1 month ago

@brunoblazer : I have the same problem and did not solve it. @dmickeyus asked me to check my logs but I didnt have time. Can you check in your logs what happens?

@dmickeyus : did not have time to analyse my logs as you asked that's why I did not answer yet, sorry. But as you guessed: yes, it was working previously, I triple checked the json. I use BLE proxy on esp32, restarted without success.

efranulic commented 1 month ago

hello, Seeing if anyone can help me because I've been back from this for almost a week and I haven't achieved anything. I'll tell you what I did and see if I'm missing anything. I pasted the new tuya_local_ble folder into the correct custom_components and created the devices.py file the file I created was like this { "MAC DO FINGERBOOT": { "address": "MAC DO FINGERBOOT", "uuid": "UUID DO FINGERBOOT", "local_key": "LOCAL KEY DO FINGERBOOT", "device_id": "DEVICE ID FINGERBOOT", "category": "szjqr", "product_id": "xhf790if", "device_name": "CUBETOUCH II", "product_model": "CBTB3002", "product_name": "CUBETOUCH II" } }

When restarting, nothing is detected I didn't do anything other than restart the HA, if I'm adding equipment image

when clicking on add it gives the error: not_implemented

Do I need to do anything? insert your data somewhere like configuration or something?

Hello @brunoblazer, the devices file extension shoud be .json, not .py

brunoblazer commented 1 month ago

hello, Seeing if anyone can help me because I've been back from this for almost a week and I haven't achieved anything. I'll tell you what I did and see if I'm missing anything. I pasted the new tuya_local_ble folder into the correct custom_components and created the devices.py file the file I created was like this { "MAC DO FINGERBOOT": { "address": "MAC DO FINGERBOOT", "uuid": "UUID DO FINGERBOOT", "local_key": "LOCAL KEY DO FINGERBOOT", "device_id": "DEVICE ID FINGERBOOT", "category": "szjqr", "product_id": "xhf790if", "device_name": "CUBETOUCH II", "product_model": "CBTB3002", "product_name": "CUBETOUCH II" } }

When restarting, nothing is detected I didn't do anything other than restart the HA, if I'm adding equipment image

when clicking on add it gives the error: not_implemented

Do I need to do anything? insert your data somewhere like configuration or something?

Hello @brunoblazer, the devices file extension shoud be .json, not .py

Hi , And it's in that format, I wrote badly in the post. Screenshot_20240527_162229_Home Assistant.jpg

dmickeyus commented 1 month ago

@efranulic, unfortunately, the code is focused for A1 MAX smart lock only. For other tuya devices, I think it needs someone to find the datapoints for those devices to make it works.

@brunoblazer, it seems the devices.json placed in incorrect folder, it should not be inside the /config/custom_components/tuya_local_ble, instead, try to make a folder in /config/tuya_local_ble and put devices.json into.

comandor1967 commented 1 month ago

only signal......... AT1 (rlyxv7pe) Tuya

brunoblazer commented 1 month ago

@dmickeyus 1000 thanks, it was as simple as that, copy/paste xD

dmickeyus commented 1 month ago

@comandor1967, rlyxv7pe should work and category should be jtmspro. did you install also tuya in home assistant? it could be a reason to get conflict.

comandor1967 commented 1 month ago

Я всё-таки его завел ,надо заводить правильно uuid и отцепить его от шлюза

пн, 27 мая 2024 г., 23:08 dmickeyus @.***>:

@comandor1967 https://github.com/comandor1967, rlyxv7pe should work, did you install also tuya in home assistant? it could be a reason to get conflict.

— Reply to this email directly, view it on GitHub https://github.com/PlusPlus-ua/ha_tuya_ble/issues/46#issuecomment-2134001821, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGC3K7C2YSGJLTPFHTJZNC3ZEOHDLAVCNFSM6AAAAAA2NW4636VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZUGAYDCOBSGE . You are receiving this because you were mentioned.Message ID: @.***>

brunoblazer commented 1 month ago

I'm very sleepy but to add more than one piece of equipment, shouldn't the code be like this?

[ { "XX:XX:XX:XX:XX:XX": { "address": "XX:XX:XX:XX:XX:XX", "uuid": "your_uuid_key", "local_key": "your_secret_key'", "device_id": "Your_device_id", "category": "jtmspro", "product_id": "rlyxv7pe", "device_name": "A1 PRO MAX", "product_model": "AT1", "product_name": "Smart lock" } }, { "XX:XX:XX:XX:XX:XX": { "address": "XX:XX:XX:XX:XX:XX", "uuid": "your_uuid_key", "local_key": "your_secret_key'", "device_id": "Your_device_id", "category": "jtmspro", "product_id": "rlyxv7pe", "device_name": "A1 PRO MAX", "product_model": "AT1", "product_name": "Smart lock" } } ]

dmickeyus commented 1 month ago

I guess the code should work but I didn't test as I don't have multiple devices in hands. Maybe without extra bruckets like this:

{ "XX:XX:XX:XX:XX:XX": { "address": "XX:XX:XX:XX:XX:XX", "uuid": "your_uuid_key", "local_key": "your_secret_key'", "device_id": "Your_device_id", "category": "jtmspro", "product_id": "rlyxv7pe", "device_name": "A1 PRO MAX", "product_model": "AT1", "product_name": "Smart lock" }, "XX:XX:XX:XX:XX:XX": { "address": "XX:XX:XX:XX:XX:XX", "uuid": "your_uuid_key", "local_key": "your_secret_key'", "device_id": "Your_device_id", "category": "jtmspro", "product_id": "rlyxv7pe", "device_name": "A1 PRO MAX", "product_model": "AT1", "product_name": "Smart lock" } }

comandor1967 commented 1 month ago

Работает ,uuid надо ставить

пн, 27 мая 2024 г., 23:08 dmickeyus @.***>:

@comandor1967 https://github.com/comandor1967, rlyxv7pe should work, did you install also tuya in home assistant? it could be a reason to get conflict.

— Reply to this email directly, view it on GitHub https://github.com/PlusPlus-ua/ha_tuya_ble/issues/46#issuecomment-2134001821, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGC3K7C2YSGJLTPFHTJZNC3ZEOHDLAVCNFSM6AAAAAA2NW4636VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZUGAYDCOBSGE . You are receiving this because you were mentioned.Message ID: @.***>

brunoblazer commented 1 month ago

Hello everybody, This has worked impeccably like my fingerbots, it was what I needed and thank you for the development. Now a person always thinks more :) does this apply to other equipment? For example, they detect my lamps but even if I put their data in the file, I can't install them, the same situation for a temperature and humidity reader is also true.

dmickeyus commented 1 month ago

The foundation of the current development should be ready for most tuya ble devices. However, in order to support other devices, the device spec or reverse engineering is required to add sensors and controls. This is manufacturer independant.

anonine9899 commented 1 month ago

@dmickeyus First of all, Kudos for all your work! I finally succeed to see the lock within ha_tuya_BLE but everything is grayed out. I tried to turn off my phone's Bluetooth and restart HA and took out batteries and back in and disabled Tuya integration. What am I missing here?

HAOS on RPI4, using local BT, setting on BT is "passive scan - V" (ive tried to remove it and stil nothing. Nothing else is connected to my RPI via BT.

image

Core 2024.6.1 Supervisor 2024.06.0 Operating System 12.3 Frontend 20240605.0

Thanks!

image

dmickeyus commented 1 month ago

@anonine9899 I believe you can make it eventually as the model is matched and bluetooth discovered the device sucessfully. A flash from my head is that you may check the HA system log. You could also check again the devices.json parameters again but at least I could confirm the MAC address and the file path are correct.

I guess you may already know that if you are using ESP32 proxy, there is a limitation that each could maximum connect to 3 BLE devices.

Good luck.

dmickeyus commented 1 month ago

@anonine9899 Congratulations, I am alright, take care of your family.