Hi Xenomes, after some tests I have some others issues that i dont understand.
Here my debug_discovery.py :
Getting credentials
Got credentials
{ 'access_token': 'EUheu1544366034489mQR6HQjME85BjVp',
'expires_in': 864000,
'refresh_token': 'EUheu1544366034489mQR6HFyYbkUTEdB',
'token_type': 'bearer'}
Getting devices
Got devices
{ 'header': {'code': 'SUCCESS', 'payloadVersion': 1},
'payload': { 'devices': [ { 'data': { 'brightness': '255',
'color_mode': 'white',
'color_temp': 4600,
'online': False,
'state': 'true'},
'dev_type': 'light',
'ha_type': 'light',
'icon': '
https://images.tuyaeu.com/smart/icon/ay ... 2e1b1e.png',
'id': '70770354c44f3393bc41',
'name': 'Salon 4'},
{ 'data': { 'brightness': '255',
'color_mode': 'colour',
'color_temp': 7282,
'online': True,
'state': 'false'},
'dev_type': 'light',
'ha_type': 'light',
'icon': '
https://images.tuyaeu.com/smart/icon/ay ... f1c5cf.png',
'id': 'bf37a2254fdd9384a4rixk',
'name': 'Chambre'},
{ 'data': { 'brightness': '1000',
'color_mode': 'colour',
'online': True,
'state': 'false'},
'dev_type': 'light',
'ha_type': 'light',
'icon': '
https://images.tuyaeu.com/smart/icon/15 ... s3lt_0.png',
'id': '351636742462ab1459fa',
'name': 'Ruban'},
{ 'data': { 'brightness': '255',
'color_mode': 'white',
'color_temp': 4600,
'online': True,
'state': 'false'},
'dev_type': 'light',
'ha_type': 'light',
'icon': '
https://images.tuyaeu.com/smart/icon/ay ... 2e1b1e.png',
'id': '82276021c44f33cdc0f8',
'name': 'Salon 5'},
{ 'data': { 'brightness': '255',
'color_mode': 'colour',
'online': True,
'state': 'false'},
'dev_type': 'light',
'ha_type': 'light',
'icon': '
https://images.tuyaeu.com/smart/product_icon/dj.png',
'id': '60130676b4e62d50ddd7',
'name': 'Rose'},
{ 'data': { 'brightness': '255',
'color_mode': 'white',
'online': True,
'state': 'false'},
'dev_type': 'light',
'ha_type': 'light',
'icon': '
https://images.tuyaeu.com/smart/product_icon/dj.png',
'id': '74547806807d3a4648a8',
'name': 'Cuisine'},
{ 'data': { 'brightness': '255',
'color_mode': 'white',
'online': False,
'state': 'true'},
'dev_type': 'light',
'ha_type': 'light',
'icon': '
https://images.tuyaeu.com/smart/product_icon/dj.png',
'id': '60130676b4e62d50dc19',
'name': 'Ninja'},
{ 'data': { 'brightness': '255',
'color_mode': 'white',
'color_temp': 4600,
'online': False,
'state': 'false'},
'dev_type': 'light',
'ha_type': 'light',
'icon': '
https://images.tuyaeu.com/smart/icon/ay ... 2e1b1e.png',
'id': '70770354dc4f22a71e15',
'name': 'Salon 3'},
{ 'data': { 'brightness': '255',
'color_mode': 'white',
'color_temp': 4600,
'online': True,
'state': 'false'},
'dev_type': 'light',
'ha_type': 'light',
'icon': '
https://images.tuyaeu.com/smart/icon/ay ... 2e1b1e.png',
'id': '82276021c44f33cc3b2a',
'name': 'Salon 2'},
{ 'data': { 'brightness': '255',
'color_mode': 'white',
'color_temp': 4600,
'online': True,
'state': 'false'},
'dev_type': 'light',
'ha_type': 'light',
'icon': '
https://images.tuyaeu.com/smart/icon/ay ... 2e1b1e.png',
'id': '82276021c44f33cda905',
'name': 'Salon 1'},
{ 'data': { 'brightness': '255',
'color_mode': 'white',
'online': False,
'state': 'true'},
'dev_type': 'light',
'ha_type': 'light',
'icon': '
https://images.tuyaeu.com/smart/product_icon/dj.png',
'id': '60130676b4e62d50f03f',
'name': 'Bureau'},
{ 'data': {},
'dev_type': 'scene',
'ha_type': 'scene',
'id': 'BVlmpmtwzdAkkgUx',
'name': 'Salon OFF'},
{ 'data': {},
'dev_type': 'scene',
'ha_type': 'scene',
'id': 'siXNsXHl4i6gmUVk',
'name': 'Salon ON'}],
'scenes': []}}
!!! NOW REMOVE THIS FILE, SO YOUR CREDENTIALS (username, password) WON'T LEAK !!!
In my Domoticz panel I only have the LED stripe that i can change colors, whereas all my lights are same type RGB and i only can change white warm.
Also my scenes do nothing when i click on it.