Comments (11)
I'm currently working on making it easier to add new devices as yaml file configurations.
One essential piece of information missing from your analysis is the dps id.
from tuya-local.
dps id.
dps id ? There is a Device ID:, Product ID, owner_id, uid. Where can I view "dps id"?
from tuya-local.
I don't know where you are looking, but the schema has it as "id", and in the protocol it is "dps".
from tuya-local.
This is the result of the request - {{url}}/v1. 0/devices/{{device_id}} :
{
"result": {
"active_time": 1600188918,
"biz_type": 0,
"category": "dj",
"create_time": 1599980072,
"icon": "smart/icon/ay1511658812948sYzut/128eca53fe9f9498bfa4e852b5f397e4.png",
"id": "50006075a4cf12e6d8b7",
"ip": "XXX.XXX.XXX.XXX",
"local_key": "XXXXXXXXXXXXX",
"name": "Light",
"online": true,
"owner_id": "8422602",
"product_id": "b3rzqnxq8w8dfmlc",
"product_name": "AM-WIFI-WW",
"status": [
{
"code": "scene_data_v2",
"value": ""
},
{
"code": "countdown_1",
"value": 0
},
{
"code": "switch_led",
"value": false
},
{
"code": "work_mode",
"value": "white"
},
{
"code": "control_data",
"value": ""
},
{
"code": "bright_value_v2",
"value": 1000
}
],
"sub": false,
"time_zone": "+03:00",
"uid": "eu15765748060481yeIL",
"update_time": 1600190749,
"uuid": "50006075a4cf12e6d8b7"
},
"success": true,
from tuya-local.
You seem to be using the tuya web service interface.
This component is for direct communication with tuya devices.
The web interface is used by the built in tuya component (at https://github.com/home-assistant/core)
from tuya-local.
Yes, I use the web interface, because my device is not supported by "local taya", so I wrote to You. I apologize if I explain it poorly, I translate it from Russian.
from tuya-local.
So the dps id, which is needed for mapping those fields in the web ui onto the actual device, can be found by either:
- Looking in the phone filesystem for the app's data directory, and finding the schema for the device in there.
- Using tuya-cli to query the device for its status.
tuya-cli get --id {{device_id}} --key {{device_key}} -a
- If the device is using protocol version 3.1, you can eavesdrop on the first message the device sends when the app is opened. (in protocol version 3.1 the first message is unencrypted, but in version 3.3 the first message is encrypted, so you will need tuya-cli to decrypt it)
from tuya-local.
dps: { '20': false, '21': 'white', '22': 1000, '26': 0 }
This is what you need ?
from tuya-local.
Hi, is there any news on dimmer?
from tuya-local.
I am in the middle of a refactor to make adding new devices easier, and not a lot of time to spend, so it could be some time before I add any new devices.
from tuya-local.
it turned out to add a dimmer through the localtuya-homeassistant integration
https://github.com/rospogrigio/localtuya-homeassistant/
from tuya-local.
Related Issues (20)
- 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
- Request support for LSC-Floodlight with senor
- localtuya.set_dp equivalent?
- Request support for Pet Feeder HOT 24
- Request support for [device description] TUYA RCBO 3 phase HOT 3
- Request support for Karst-400 Solar Inverter HOT 2
- White box is shown instead of QR code when attempting to validate login HOT 1
- Не получается добавить устройство
- Request support for Zigbee Smart Dimmer Switch Module (2 Gang)
- It's broken! HOT 1
- Diivoo dual water timer valve status change not showing HOT 3
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.