PlusPlus-ua / ha_tuya_ble

Home Assistant support for Tuya BLE devices
MIT License
191 stars 137 forks source link

Integration FUJIN Automatic Irrigation Bluetooth Water Timer FJKB005C-3 #45

Open fpgodoy opened 1 year ago

fpgodoy commented 1 year ago

I have a FUJIN Automatic Irrigation Bluetooth Water Timer FJKB005C-3 (https://www.fujingarden.com/m/Product/plant_self_watering_automation_irrigation_water_timer.html) and it has been discovered by the integration. However, I've just got one (not working) signal strength entity on HA.

Anyone can help integrating this device?

    "category": "sfkzq",
    "product_id": "bh9xhshd",
    "product_name": "Bluetooth single channel controller ",

Datapoints on "Device Debugging" page of your "Tuya Cloud Project":

va_temperature | Integer | {   "unit": "℃",   "min": -200,   "max": 600,   "scale": 1,   "step": 1 }
va_humidity | Integer | {   "unit": "%",   "min": 0,   "max": 100,   "scale": 0,   "step": 1 }
battery_state | Enum | {   "range": [     "low",     "middle",     "high"   ] }
charge_state | Boolean | "{true,false}"
maxtemp_set | Integer | {   "unit": "℃",   "min": -200,   "max": 600,   "scale": 1,   "step": 1 }
minitemp_set | Integer | {   "unit": "℃",   "min": -200,   "max": 600,   "scale": 1,   "step": 1 }
maxhum_set | Integer | {   "unit": "%",   "min": 0,   "max": 100,   "scale": 0,   "step": 1 }
minihum_set | Integer | {   "unit": "%",   "min": 0,   "max": 100,   "scale": 0,   "step": 1 }
temp_alarm | Enum | {   "range": [     "loweralarm",     "upperalarm",     "cancel"   ] }
hum_alarm | Enum | {   "range": [     "loweralarm",     "upperalarm",     "cancel"   ] }
switch | Boolean | "{true,false}"

IDs of the datapoints:

{"1":"Current Temperature","2":"Current Humidity","3":"Battery level state","8":"Charging","10":"Set maxtemp","11":"Set minitemp","12":"Set maxhum","13":"Set minihum","14":"Temp alarm","15":"Hum alarm","101":"Switch","102":"Mode","103":"Fault Alarm","104":"Rain","105":"自动执行状态","106":"Countdown","107":"循环定时","108":"自动模式区分","109":"生效时间段","110":"型号","111":"记录型开关","112":"Irrigation timer"}

In the HA logs I just see:

Config entry 'DC-23-4F-53-63-F8 5363F8' for tuya_ble integration not ready yet: Could not find Tuya BLE device with address DC:23:4F:53:63:F8; Retrying in background
PlusPlus-ua commented 1 year ago

Hi, thank you for information,

It's not clear to me how the device works. Have I made a climate entity with temperature and humidity ranges? Could you please explain it, maybe with some screenshots from mobile app?

fpgodoy commented 1 year ago

Update: a few minutes later i had different log messages:

2023-07-10 23:09:00.634 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: Initializing
2023-07-10 23:09:00.635 DEBUG (MainThread) [custom_components.tuya_ble.cloud] Retrieved: uuid: xxxxxxxxxxxxxxxx, local_key: xxxxxxxxxxxxxxxx, device_id: xxxxxxxxxxxxxxxx, category: sfkzq, product_id: bh9xhshd, device_name: bluetooth valve, product_model: , product_name: Bluetooth single channel controller
2023-07-10 23:09:00.680 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: Updating
2023-07-10 23:09:00.691 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: Connecting; RSSI: -65
2023-07-10 23:09:05.730 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: Device unexpectedly disconnected; RSSI: -65
2023-07-10 23:09:08.726 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: Device unexpectedly disconnected; RSSI: -65
2023-07-10 23:09:12.183 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: Connected; RSSI: -65
2023-07-10 23:09:12.920 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: Sending device info request
2023-07-10 23:09:12.921 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: Sending packet: #1 FUN_SENDER_DEVICE_INFO
2023-07-10 23:09:41.496 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: Device unexpectedly disconnected; RSSI: -65
2023-07-10 23:10:12.925 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: timeout receiving response, RSSI: -65
2023-07-10 23:10:12.926 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: Sending device info request failed
2023-07-10 23:10:12.927 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: Connecting; RSSI: -65
2023-07-10 23:10:14.725 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: Connected; RSSI: -65
2023-07-10 23:10:15.547 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: Sending device info request
2023-07-10 23:10:15.547 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: Sending packet: #2 FUN_SENDER_DEVICE_INFO
2023-07-10 23:10:44.798 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: Device unexpectedly disconnected; RSSI: -65
2023-07-10 23:11:15.552 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: timeout receiving response, RSSI: -65
2023-07-10 23:11:15.554 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:53:63:F8: Sending device info request failed

About

It's not clear to me how the device works. Have I made a climate entity with temperature and humidity ranges? Could you please explain it, maybe with some screenshots from mobile app?

It was expected to include a rain sensor, but there are no sensors available through the app, at least not for direct connection to my phone. Unfortunately, I don't have a Tuya hub to test it using Tuya cloud.

Screenshot_20230711_080930_Tuya Smart tempFileForShare_20230711-081100

fpgodoy commented 1 year ago

I accidentally clicked on the wrong button by mistake.