Comments (13)
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.
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.
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.
Happy to share the full XML with you. Can I email that?
from tuya-local.
You can email it to jasonrumney at gmail.com
from tuya-local.
Done! Thank you.
from tuya-local.
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.
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.
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.
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!
from tuya-local.
from tuya-local.
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.
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.
Please followup on issue #183 if there is any issue still.
from tuya-local.
Related Issues (20)
- HA 2024.6.0 reports its own yaml loader as blocking HOT 4
- Issues with Tuya lights after light power cycle HOT 3
- Parkside PMRDA 20-Li A1 reports wrong (or not exhaustive) statuses and incorrect problems HOT 9
- Allow device data to be redacted in diagnostics.
- Kettle Device Type Missing HOT 1
- Request support for Embrighten Curtain Lights
- Configuration file for essentials_purifier not found HOT 2
- There are delays when changing brightness and changing color on rgbwc lamp devices, unlike localtuya integration
- Detected blocking call to open inside the event loop by custom integration 'tuya_local HOT 1
- Request support for Smart Socket + USB switch HOT 3
- owon_pct513_thermostat does not work properly in Fahrenheit HOT 4
- WH-218 Temperature Scale Issue HOT 1
- Request support for [Hydrate Ultra Petoneer | Fresco | Pettadore EU pet fountain ] HOT 2
- Request support for TOMZN 1P+N WIFI Smart Switch Energy Meter Kwh Metering Monitoring HOT 3
- Device type problem after adding secondary_entities: HOT 3
- Request support for [Modena Water Heater ES-15-SKY]
- Sensor status not updated if changing too quickly
- Request support for: [Minoston Wi-Fi 4 Hour Countdown Timer Switch]
- Request support for Tesla TT34TP21-1232IAWUV air-conditioner HOT 2
- Request support for Tefal X-Plorer Serie 95 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tuya-local.