Xenomes / Domoticz-TUYA-Plugin

Implements the special Tuya Home Assistant API.
22 stars 8 forks source link

movement sensor and window-sensor in Tuya plugin #25

Closed jpveen closed 2 years ago

jpveen commented 2 years ago

Hi Xenomes, I have a Tuya setup with 3 devices in my Tuya account: 1 bulb, 1 movement sensor and 1 window-sensor (magnetic contact). However the window-sensor does not show up, and the movement sensor does not produce a movement within Domoticz.

All 3 devices (bulb + both sensors) work perfect in the Tuya app. And the bulb can also be controlled perfectly from Domoticz (level, color-temperature).

I ran the debug_discover, the bulb and movement sensor are listed here, the window-sensor is not even listed. What can I do to get the movement-sensor and the window-sensor working?

Thanks, Jan-Pieter

The output of debug_discover:

Getting devices
Got devices
{   'header': {'code': 'SUCCESS', 'payloadVersion': 1},
    'payload': {   'devices': [   {   'data': {'online': True, 'state': False},
                                      'dev_type': 'switch',
                                      'ha_type': 'switch',
                                      'icon': 'https://images.tuyaeu.com/smart/icon/bay1582725542891RIK5/1594366076b22b3ff00ac.png',
                                      'id': '73486068483fda10b4f1',
                                      'name': 'Bewegingssensor-T1'},
                                  {   'data': {   'brightness': '690',
                                                  'color_mode': 'white',
                                                  'color_temp': 7635,
                                                  'online': True,
                                                  'state': 'true'},
                                      'dev_type': 'light',
                                      'ha_type': 'light',
                                      'icon': 'https://images.tuyaeu.com/smart/icon/bay1582725542891RIK5/1594801102452254e1949.png',
                                      'id': 'bf5f2fe1e741ee3c29aulw',
                                      'name': 'keukentafel'}],
                   'scenes': []}}
Xenomes commented 2 years ago

Device is not supported by the Tuya API V1.