Giter Club home page Giter Club logo

Comments (11)

make-all avatar make-all commented on July 17, 2024 1

Thanks for decoding the dps. I think the "anion" might be the Ionizer control.

from tuya-local.

make-all avatar make-all commented on July 17, 2024 1

I don't have any contacts at Tuya, but I'm not sure it is something Tuya can fix, as they mostly sell their Wi-Fi modules and cloud service to other manufacturers to integrate into products. They do have some reference designs, but I'm not sure dehumidifiers are among them.

from tuya-local.

marrold avatar marrold commented on July 17, 2024

Since this first attempt I can no longer try to add the device. I've tried reseting it and re-registering to Tuya cloud but I get the same error. The Smart Life app does still work however:

2021-07-20 17:45:15 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.3.
2021-07-20 17:45:15 DEBUG (SyncWorker_9) [custom_components.tuya_local.device] Refreshing device state for Test.
2021-07-20 17:45:16 DEBUG (SyncWorker_9) [custom_components.tuya_local.device] Retrying after exception 'dps'
2021-07-20 17:45:16 INFO (SyncWorker_9) [custom_components.tuya_local.device] Setting protocol version for Test to 3.1.
2021-07-20 17:45:17 DEBUG (SyncWorker_9) [custom_components.tuya_local.device] Retrying after exception 'dps'
2021-07-20 17:45:17 INFO (SyncWorker_9) [custom_components.tuya_local.device] Setting protocol version for Test to 3.3.
2021-07-20 17:45:17 DEBUG (SyncWorker_9) [custom_components.tuya_local.device] Retrying after exception 'dps'
2021-07-20 17:45:17 INFO (SyncWorker_9) [custom_components.tuya_local.device] Setting protocol version for Test to 3.1.
2021-07-20 17:45:18 DEBUG (SyncWorker_9) [custom_components.tuya_local.device] Retrying after exception 'dps'
2021-07-20 17:45:18 ERROR (SyncWorker_9) [custom_components.tuya_local.device] Failed to refresh device state for Test.
2021-07-20 17:45:18 INFO (SyncWorker_9) [custom_components.tuya_local.device] Setting protocol version for Test to 3.3.

from tuya-local.

make-all avatar make-all commented on July 17, 2024

When you reset and re-registered to the cloud, the local key probably changed. You will have to repeat the steps to get the key again.
It seems the CD20PRO and CD25PRO are not compatible, so this will need to be a new config.

from tuya-local.

marrold avatar marrold commented on July 17, 2024

I've got the new key and have the same issue - anyway I don't think it's directly related to tuya-local so I'll look into that seperatly.

What do you need to add another device? The mapping for the dps?

Thanks

from tuya-local.

marrold avatar marrold commented on July 17, 2024

I've edited electriq_dehumidifier.yaml and it pretty much works with the exception of the Humidity Indicator light which doesn't appear to be showing in Home Assistant

https://github.com/marrold/tuya-local/blob/main/custom_components/tuya_local/devices/electriq_dehumidifier.yaml

dps are as follows:

1: Main Power (true, false)
2: Mode (high, low, auto, fan)
3: Current Humidity
4: Setpoint
5: anion ?? (true, false)
10: UV (true, false)
101: Humidity Indicator (true, false)
102: Oscilattion (0_90, 45, 90)
103: Current Temperature

One thing worth noting, this model doesn't appear to have an Ionizer, however its possible to turn it on and off via tuya.com but it doesn't show in the Smart Life app. It's a mystery.

from tuya-local.

make-all avatar make-all commented on July 17, 2024

Interestingly, your first logs were missing "4", but you've left it in the config. Is this only sent when the device is on?

Perhaps I need to add advice to turn devices on before configuring them, if they are not sending all the DPS out when off, as the detection may miss them.

from tuya-local.

marrold avatar marrold commented on July 17, 2024

I didn't spot that, It doesn't seem like it needs to be switched on to have a set point, this is from this morning:

2021-07-21 09:05:27 DEBUG (SyncWorker_5) [custom_components.tuya_local.device] Electriq Dehumidifier CD25PRO-LE-V2 refreshed device state: {"devId": "011488782cf4323febd2", "dps": {"1": false, "2": "high", "3": 56, "4": 70, "5": false, "10": false, "101": true, "102": "90", "103": 27, "updated_at": 1626854727.613766}}

I can go through the process again if it helps?

from tuya-local.

make-all avatar make-all commented on July 17, 2024

The changes are merged in 0.8.9. As the config file was renamed to avoid conflict with the CD25PRO, you may need to go through the setup process again.

from tuya-local.

marrold avatar marrold commented on July 17, 2024

It works great, thanks!

I think ignoring the Ioniser is fine. I see a button on the PCB but not on the physcial unit itself, so I don't think it exists.

image
image

from tuya-local.

marrold avatar marrold commented on July 17, 2024

One other observation, these dehumidifers don't seem to report the tank full status to the Tuya API at all. If you ever get chance to mention it to Tuya, please do

Thanks again

from tuya-local.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.