Giter Club home page Giter Club logo

Comments (13)

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

It will require more information about the DPS available on that device. If there is nothing in the HA log, then using a command line tool like tuyacli or tinytuya to query the dps is another method, and probably more convenient when it comes to experimenting with different settings.

from tuya-local.

xbmcnut avatar xbmcnut commented on July 17, 2024

Thanks. I have the preferences_global_keyazxxxxxx.xml file that contains an entry for dps along with the deviceID and local key etc that I pulled using the Bluestacks method with an old version of Smart Life. Will that contain the data you're after? I also have a Tuya developer account so I'm assuming some or all of the stuff I can pull from there?

from tuya-local.

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

I think that XML file is the schema file for the device, which has all the useful information in it.

The Tuya developer portal can contain useful information about ranges and enum values, but is missing the DPS ID and does not always list all available settings. It is actually documentation for the server API, which often closely matches the device local API, but not always.

from tuya-local.

xbmcnut avatar xbmcnut commented on July 17, 2024

Happy to share the full XML with you. Can I email that?

from tuya-local.

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

You can email it to jasonrumney at gmail.com

from tuya-local.

xbmcnut avatar xbmcnut commented on July 17, 2024

Done! Thank you.

from tuya-local.

xbmcnut avatar xbmcnut commented on July 17, 2024

Wow, that was fast Jason! Sadly, after updating to 0.11.1 this evening, I still get the 'device not supported' popup after entering the same data in the provided XML. I rebooted HA (2021.10.2) after updating the HACS integration.

image

2021-10-09 22:51:15 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches None with quality of 0%. DPS: {'5': 96, 'updated_at': 1633773075.2028716}
2021-10-09 22:51:15 WARNING (MainThread) [custom_components.tuya_local.config_flow] Report this to https://github.com/make-all/tuya-local/issues/

from tuya-local.

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

It is only reporting the current temperature, not the on/off state or the preset. You may need to add it while it is switched on so it reports everything.

If it really is only ever reporting current temperature locally, and requiring commands to go via the cloud, then you might be better setting it up as a temperature sensor in localtuya for now, as I haven't yet added sensor support.

from tuya-local.

xbmcnut avatar xbmcnut commented on July 17, 2024

Thank you!!!! I've been able to add it as a simple switch while it was boiling which is all I need. Now I can ask Google to turn it on!

image

from tuya-local.

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

from tuya-local.

xbmcnut avatar xbmcnut commented on July 17, 2024

Sorry, this is all I see in the HA log since the addition of the switch.

2021-10-12 19:29:56 WARNING (MainThread) [homeassistant.components.switch] Updating tuya_local switch took longer than the scheduled update interval 0:00:30
2021-10-12 19:30:26 WARNING (MainThread) [homeassistant.components.switch] Updating tuya_local switch took longer than the scheduled update interval 0:00:30
2021-10-12 19:30:56 WARNING (MainThread) [homeassistant.components.switch] Updating tuya_local switch took longer than the scheduled update interval 0:00:30
2021-10-12 19:31:08 ERROR (SyncWorker_12) [custom_components.tuya_local.device] Failed to refresh device state for Kogan Kettle.
2021-10-12 19:31:36 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.kogan_kettle is taking over 10 seconds
2021-10-12 19:32:36 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.kogan_kettle is taking over 10 seconds
2021-10-12 19:32:56 WARNING (MainThread) [homeassistant.components.switch] Updating tuya_local switch took longer than the scheduled update interval 0:00:30
2021-10-12 19:33:26 WARNING (MainThread) [homeassistant.components.switch] Updating tuya_local switch took longer than the scheduled update interval 0:00:30
2021-10-12 19:33:56 WARNING (MainThread) [homeassistant.components.switch] Updating tuya_local switch took longer than the scheduled update interval 0:00:30
2021-10-12 19:34:17 ERROR (SyncWorker_11) [custom_components.tuya_local.device] Failed to refresh device state for Kogan Kettle.
2021-10-12 19:34:36 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.kogan_kettle is taking over 10 seconds
2021-10-12 19:34:56 WARNING (MainThread) [homeassistant.components.switch] Updating tuya_local switch took longer than the scheduled update interval 0:00:30

from tuya-local.

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

Based on info from issue #183, I have removed the preset from the config. It seems that this is a write-only command, or only appears in the output under limited circumstances. With just the switch and current temperature in the config, the kettle should now be correctly detected when it is on.

from tuya-local.

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

Please followup on issue #183 if there is any issue still.

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.