tuya / tuya-home-assistant

Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
MIT License
868 stars 206 forks source link

alrec bluetooth hub and child bluetooth device #459

Open hazell20 opened 2 years ago

hazell20 commented 2 years ago

l having this issue with the arlec bluetooth hubs child devices (door contact sensor , pir sensor , and temp sensor) not updating

i added my logs to old post 22days ago but no one has replied

{ "active_time": 1596152690, "biz_type": 18, "category": "wsdcg", "create_time": 1596152690, "icon": "smart/icon/ay1536534747810ekKBj/156584130076b224f5a50.png", "id": "bfcb56ba4071da32d15ghx", "ip": "", "lat": "", "lon": "***", "name": "temp sensor", "online": false, "owner_id": "5180860", "product_id": "3ubxbto1", "product_name": "Climate Sensor", "status": [ { "code": "va_humidity", "value": 61 }, { "code": "va_temperature", "value": 70 } ],

{ "active_time": 1596151879, "biz_type": 18, "category": "wfcon", "create_time": 1596151879, "icon": "smart/icon/ay1536534747810ekKBj/1566277572ce48af53c29.png", "id": "bf20719bcb729806fbuysy", "ip": "", "lat": "", "local_key": "", "lon": "", "name": "bluetooth hub", "online": true, "owner_id": "5180860", "product_id": "bkjsfuzu", "product_name": "Smart Hub", "status": [], "sub": true, "time_zone": "+10:00", "uid": "***", "update_time": 1628147413, "uuid": "180050185002915b5072" },

"active_time": 1596708169, "biz_type": 18, "category": "pir", "create_time": 1596708169, "icon": "smart/icon/ay1536534747810ekKBj/1565841334dae0a2029d5.png", "id": "bf09174e06ac93c872q0qw", "ip": "", "lat": "", "lon": "", "model": "YIDONG", "name": "rbedroom motion", "online": false, "owner_id": "5180860", "product_id": "6xcrb0jp", "product_name": "Motion Sensor", "status": [ { "code": "pir", "value": "none" }, { "code": "battery_percentage", "value": 100 } ], "sub": true, "time_zone": "+08:00", "uid": "", "update_time": 1628001856, "uuid": "dbec3edea813995a" },

{ "active_time": 1596152696, "biz_type": 18, "category": "mcs", "create_time": 1596152696, "icon": "smart/icon/ay1536534747810ekKBj/156584136047cd8f7c1a2.png", "id": "bf587deebdf63a036fahqd", "ip": "", "lat": "", "lon": "", "name": "door sensor", "online": false, "owner_id": "5180860", "product_id": "kadfkbvr", "product_name": "Contact Sensor", "status": [ { "code": "doorcontact_state", "value": false }, { "code": "battery_value", "value": 50 } ], "sub": true, "time_zone": "+08:00", "uid": "", "update_time": 1628001856, "uuid": "5ffe628d8aa41e63" },

lplanken commented 2 years ago

Confirming I also have this same issue affecting the Arlec bluetooth hub attached devices (PIR, Temperature sensor etc.). The hub is model SGS01HA.

The devices are all detected by the integration, however the state doesn't update after an initial reading is taken (i.e. when the integration is loaded)

Is there anything I can provide to also help with this issue being looked at?

Redndh commented 2 years ago

+1 on this issue

I have a few additional devices in my setup that can be used as reference materials (2x outdoor Tuya smart plugs).

Tuya IoT platform

I can see all my devices being listed; however, only devices that connect directly to WiFi are showing Online (smart plugs + gateway). All child sensors to the gateway are showing offline. Interestingly enough, data is available from each of the device's debug logs image

Home Assistant

All the devices are showing and have been automatically added, and yet again, I can only see entities directly connected to WiFi in the dashboard. All child devices to the gateway are showing as Unavailable image

The question is now whether the issue sits on the Tuya IoT Cloud or HA side.

charlgale commented 2 years ago

Did anyone get to the bottom of this Its rather frustrating having the these somewhat useless sensors

I did have the tasmota working but it is a real pain to flash the hub and configure it

Redndh commented 2 years ago

@charlgale would you have the instructions that you used to convert the hub into Tasmota by any chance?

charlgale commented 2 years ago

@Redndh i used https://templates.blakadder.com/arlec_SGS01HA.html took a bit of fiddling around with the soldering but if your soldering iron is reasonable and the solder is thin its not to bad also had to disable the tasmotizer back up for some unknown reason

Redndh commented 2 years ago

Thank you! I shall look into it!

onlyhalfchinese commented 1 year ago

Any have any luck with the original issue getting the BLE sensors to start working?