Closed jezzaaa closed 4 years ago
Looks like your device doesn't have a boolean property at index 1, which is what the get
command retrieves by default. Try adding a -a
or --all
flag to the get
command to retrieve all device properties.
$ tuya-cli get --id 572757322cf432269a18 -a
{ devId: '572757322cf432269a18',
dps:
{ '20': true,
'21': 'white',
'22': 150,
'23': 44,
'24': '00180389003c',
'25': '04464602007803e803e800000000464602007803e8000a00000000' } }
OK, so that means I need to use --dps 20?
$ tuya-cli get --id 572757322cf432269a18 --dps 20
true
Yeah, that looks right.
Hi, trying to get this working with a bulb with firmware v1.0.5 (proto v3.3). I can set to true or false, as indicated by the DEBUG output, but the result from tuya-cli always shows "undefined". If I run the demo that toggles the state, it says it's changing from undefined to undefined.