-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phy6222 controller support. #268
Comments
i dont think so, its meant to be a Bluetooth 5.0 BLE version |
Oh, it's Tuya :) |
i have no experience in this space, if someone can help me remove the bluetooth bind key bit and i can add it to HA. |
Temperature and humidity transfers only when connected. (This is for all Tuya) You can officially get the keys to any Tuya device on their website https://iot.tuya.com/. You need to register. I have not seen integration to HA for Tuya BT/BLE. |
Thanks, i got that info now, is there a browser page i can test with the local key ? |
https://www.aliexpress.com/item/1005004865399211.html
Use nRF Connect in https://play.google.com |
did it arrive ? |
Last info in tracking: Day 5 11/24/2022 18:11:12 |
I will post data on TX-05 in https://pvvx.github.io/TH-05/ @Jarled - Why not write about support in HA LocalTuya? |
What do you want me to write, have you managed to get it working ? |
TH-05 consumes a lot in operating mode: Average 33.4 uA Minimum chipset power consumption (sleep mode, datasheet): |
Can these be added to Home assistant via BTHome or will it require creating a new program ? |
ok but what about doing it via ESPHome instead ? |
No way. It requires creating a new program for PHY6222 and (wired) flashing the thermometer, which is not worth doing for this chipset version. It is not suitable for long work from CR2032. |
When temperature or humidity changes, TH-05 transmits data to BLE advertising encrypted using the Tuya protocol. |
##Advertising packages: UUID 0xFD50 - TUYA BLE PROTOCOL VERSION 4
adv - always transmitted. ##Adv contains: before bond - device pid, after bond - encrypted device_id with login_key and device_id ##Packet bytes, except for standard identifiers, are formed as follows: [7] pid_len+7 Clarification https://github.com/tuya/tuya-ble-sdk/blob/main/sdk/src/tuya_ble_main.c#L453 |
We shouldn't expect this great firmware on this device soon, isn't it? |
In this repository and TelinkMiFlasher.html Telink SoC devices are supported. |
According to the datasheet the RAM is split up into three blocks (32kB + 2 x 16kB) that can be switched off individually. So with only 16kB enabled I would expect a power consumption of 1uA + 1/4 * (13uA - 1uA) = 4uA. So for the whole device 4uA + 9 uA + 1uA = 14uA. Sounds reasonable? |
Cycle 2.5 sec:
102 ms -> If we recalculate the specified values in the "AHT20 Operating Manual" for a polling period of 10 seconds, then only the AHT20 sensor will consume at least 5 µA. In reality, according to measurements, it turns out more. As a result (according to theoretical calculations), if the BLE advertising interval of 2.5 seconds is used, the sensor is polled every 10 seconds and 16 kilobytes of RetRAM, the average consumption will be approximately 31 µA . |
So conclusion is? |
@pvvx How long did the device ultimately last on battery? |
Looks like there's Community Edition of Keil - can you not release code using community edition as open source? https://www.keil.arm.com/community/ |
Everything has already been decided. For PHY62x2, GCC sources are collected with RF library sources. |
https://github.com/pvvx/THB2 обновлен для сборки в GNU Arm Embedded Toolchain.
HTTP ERROR 451 |
нужен впн |
Обойдется. Мне Keil не нужен. |
Первая тестовая версия уже на https://github.com/pvvx/THB2 |
Возможно ли что то сделать вот с таким датчиком pvvx/ZigbeeTLc#53 ? Чип TLSR8250 и SH40. Если нужна еще какая то информация, предоставлю, все что потребуется. :) Хотелось, бы его как то подружить с HA, а то, все что смог найти интеграции "tuya ble" - не работают с ним... |
У меня такого нет. Ради одного датчика никто шевелиться не будет, только если сами возьмете исходные коды и поправите под свой вариант. |
I bought the newer version of this sensor and it seems to be using a PHY6222 controller, could get it working on this please?
http://wiki.phyplusinc.com/doku.php?id=menu:phy62_series:phy6222
The text was updated successfully, but these errors were encountered: