Giter Club home page Giter Club logo

Comments (10)

make-all avatar make-all commented on August 16, 2024 1

If you reinstall again, I have reorganised based on your first comment from yesterday. I created two separate configs for F and C, so you'll need to select the _F config for your device, which is configured for Fahrenheit. Configuration from the previous version should automatically choose the Fahrenheit version, but if it doesn't, delete the device and set it up again.

from tuya-local.

make-all avatar make-all commented on August 16, 2024 1

Thanks for your checking. The new release 0.9.0 has the support for this device now.

from tuya-local.

make-all avatar make-all commented on August 16, 2024

Please send the logs messages from Home Assistant that are output when it is detected as "Simple Switch".
That will have the list of DPS ids returned by the local protocol, which we can try to match up with the functions (switch, temp_set, temp_current, level, eco, child_lock).

It may also have the device id, which you can blank out for privacy like you did above.

from tuya-local.

make-all avatar make-all commented on August 16, 2024

I'm thinking of using the product_id in future, so if you can uncloak that (it is linked to the product, not unique to your specific device), it might help with future plans for improving detection.

from tuya-local.

Uaeguy avatar Uaeguy commented on August 16, 2024

Hello again,

Here is the log generated from the component

2021-07-22 16:00:04 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.3.
2021-07-22 16:00:05 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches simple_switch with quality of 14%. DPS: {'1': True, '2': 77, '3': 87, '4': '3', '5': '3', '6': False, '7': False, 'updated_at': 1626955204.1256018}
2021-07-22 16:00:05 WARNING (MainThread) [custom_components.tuya_local.config_flow] Report this to https://github.com/make-all/tuya-local/issues/
2021-07-22 16:00:08 INFO (MainThread) [custom_components.tuya_local.device] Creating device: "quoted for security"
2021-07-22 16:00:08 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Simple Switch to 3.3.

And for the product ID as requested

"product_id": "drwezxukumr9ohuh",

Thanks

from tuya-local.

make-all avatar make-all commented on August 16, 2024

It looks like most of the functions available on the control panel are not exposed via Wi-Fi. Only the functions mentioned in the web API capture you posted first, and one additional numeric field. I see the temperature units are selectable, so I hope the extra numeric field is an indication of those. But the current value is 3, and the units only seem to be selectable between C and F, so perhaps not. If the temperature units are not indicated by the response from the device, it might be more complex to support.

I have checked in an experimental config, please reinstall the Tuya Local integration using the "main" branch, which you can do from HACS using the menu button on the Tuya Local card, and selecting "Reinstall", then on the version, instead of the default latest release of 0.8.9, select main, which should be at the bottom of the list.

This hopefully will let you use the Thermostat card, and in Developer Tools you will be able to observe the rest of the attributes. Most of interest to me is whether my guess about the C/F selection is correct, as getting this wrong will probably make some strange behavior. Also, there are a number of attributes that might be swapped - current and target temperature, the child lock and eco modes, and the level and other numeric indicator.

from tuya-local.

Uaeguy avatar Uaeguy commented on August 16, 2024

Hello again,

I will reinstall now,

I have observed the DPS and I found the following

DPS:
{
'1': True, "back light switch bool"

'2': 77, "set temp in Fahrenheit"

'3': 87, "ambient temp in Fahrenheit"

'4': '3', "function, using schdule 1, temporary hold 2, permanent hold 3, holiday hold 4"
'5': '3', "work mode, cool 1, heat 2, off 3, emergency heat 4, auto 5"

'6': False, "fan mode bool (on = true)(auto = false)"

'7': False, "child lock bool"

from tuya-local.

Uaeguy avatar Uaeguy commented on August 16, 2024

After reinstalling, I'm able to use temperature card, I can change temperature but it is not behaving correctly. When I choose eco, the fan mode change from Fan Auto to Fan On, and when I choose normal it will go back Fan Auto. And when I change operation from heat/cool to off the backlight on the device change from on to off and vice versa.

Thank you

from tuya-local.

Uaeguy avatar Uaeguy commented on August 16, 2024

If this helps the following in developer tool

also a note, I have contacted Tuya about changing from F to C and they said it is not possible to change it in app only on the physical device. So I don't think there will be DPS for that I'm afraid.

hvac_modes:
  - heat_cool
  - 'off'
min_temp: 7
max_temp: 35
target_temp_step: 1
preset_modes:
  - normal
  - eco
current_temperature: 80
temperature: 74
preset_mode: normal
level: 3
friendly_name: Beca BHP-6000 Thermostat
supported_features: 17

from tuya-local.

Uaeguy avatar Uaeguy commented on August 16, 2024

Now it is working like a charm, just like expected. Thanks a lot.

As a side note, I have checked for C as well, when I set the value "say 20 C" it will promote the correct value and it will set it as 20 in the thermostat, however after some time in the card it will change back to the F values (68) without setting them to that value in the device which is good. I'm not sure if I'm clear. Also it is the same in the ambient temp.

Other note, for the backlight when it is switched off it will close the whole unit and I think what you have done to keep it as a separate entity same as the child lock is perfect for it Thanks and appreciated

Cheers

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.