Comments (12)
@DeltaWhy interesting find, annoying if the keys are different :(
Can you dump the schema for the bulb? See https://github.com/clach04/python-tuya/wiki/DeviceSchemas
I'm going to guess we need another model/class in the module to handle this case. I don't have any bulbs myself (only switches) so we're relying on a collaborative effort on this one.
CC @samuscherer on this as they may be interested.
from python-tuya.
Sorry that you guys haven't heard anything from me - I'm currently pretty busy and will be for a few more days but I haven't forgotten this issue and will definitely be looking into it.
from python-tuya.
Very interesting, but it shouldn't be a problem at all to implement another class/model for your kind of bulb.
@clach04 You can assign this issue to me and I'll take a look at it asap.
from python-tuya.
Here's the schema (this was under .productBeen[0].schemaInfo.schema
as an escaped string, I did my best to un-mangle it):
[
{
"mode": "rw",
"code": "led_switch",
"name": "\u00e5\u00bc\u20ac\u00e5\u2026\u00b3",
"property": {
"type": "bool"
},
"id": 1,
"type": "obj",
"desc": ""
},
{
"mode": "rw",
"code": "bright_value",
"name": "\u00e5\u00bc\u20ac\u00e5\u2026\u00b3",
"property": {
"unit": "",
"min": 25,
"max": 255,
"scale": 0,
"step": 1,
"type": "value"
},
"iconname": "icon-dp_sun",
"id": 2,
"type": "obj",
"desc": ""
},
{
"mode": "rw",
"code": "temp_value",
"name": "\u00e5\u00bc\u20ac\u00e5\u2026\u00b3",
"property": {
"unit": "",
"min": 0,
"max": 255,
"scale": 0,
"step": 1,
"type": "value"
},
"iconname": "icon-dp_light",
"id": 3,
"type": "obj",
"desc": ""
}
]
And here's the Amazon item: https://www.amazon.com/gp/product/B075GGXNZ1/ref=oh_aui_detailpage_o03_s00?ie=UTF8&psc=1
I dumped the schema by registering the bulb with the 'Smart Life' app on a rooted phone, but strangely enough the API doesn't seem to work with that app (I did update the localKey). I re-registered through the 'TuyaSmart' app and now it works again. Guessing there's different servers for the different branded apps?
from python-tuya.
@samuscherer for some reason I can only assign @DeltaWhy or myself, not sure why.
@DeltaWhy thanks for the information! I can confirm from discussions on the javascript project that kick started this python project that the backend servers are completely separate (it also matches my experiments too), I tend to only use the smart life app to dump the schema.
from python-tuya.
The back end servers are the same. The only difference is the keys used to make the requests. Each key set is a unique silo on the back end, but running in same AWS servers.
from python-tuya.
Can I sugggest that specific hardware should not be modeled but rather that the different data point types should be modeled. There is no reason one could not ship a powerstup with 5 outlets and an rgb indicator. Modeling DPs supports any device generically.
from python-tuya.
I am a NOOB to Nodeservers and Polyglot. @DeltaWhy What node server are you using to control the Lumiman bulbs? I have one to test before I purchase many more. I am using ISY994IZW and want to control either the Lumiman or TP-Link Tunable White LED bulbs. Any pointers for a Noob would be welcome. TY in advance.
from python-tuya.
@ch491 this is a Python based library, not Node. From what I can gather the ISY994IZW is a Z-Wave based device, this library is only for WiFi based devices.
from python-tuya.
from python-tuya.
Cool, thanks Bill. In that case @ch491 you probably want to take a look at https://github.com/codetheweb/tuyapi instead which is Node.js based rather than a Python one.
from python-tuya.
Thank you both, I was going off of @DeltaWhy 's post as it sounded like he was using the python GitHub project Ployglot (a nodeserver) that is the "shim" between the ISY home automation controller (zwave,Inston,and some IP control) to control Wifi Bulbs like LiFX etc using the MQTT protocol. Looking to see is a shim (python) has been created for the Lumiman (Wifi/MQTT) LED bulbs.
from python-tuya.
Related Issues (20)
- Logo Design Offer as Open Source Contribution HOT 1
- Logging is blocked when pytuya is imported HOT 1
- Web version
- BHT-6000 Thermostat (Decrypt) HOT 3
- dps status
- Vaccum Cleaner HOT 1
- ImportError: No module named 'pytuya' HOT 4
- Tuya 3.3 version support HOT 9
- Cannot use module, OutletDevice method does not exist HOT 2
- Support for curtain switch HOT 2
- Smart Life / Jinvoo request latest release installed HOT 1
- Error when changing color on the light
- Tuya App 2.8 No Longer Valid
- 7.0.4 release on PyPI HOT 2
- new switches different port HOT 3
- PIR & Door/Window Sensor Support? HOT 4
- d.status timeout with a just bought device HOT 8
- Get Device Local Key HOT 1
- 7.0.6 release HOT 2
- socket.timeout: timed out
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 python-tuya.