milo526 / homebridge-tuya-web

Hoobs and Homebridge plugin for Tuya devices using Home Assistant Tuya Web Api
MIT License
219 stars 95 forks source link

[NEW DEVICE] Gosund P1 power strip #568

Closed ftrela4991 closed 10 months ago

ftrela4991 commented 11 months ago

Device type Power Strip

Device information

{   'header': {'code': 'SUCCESS', 'payloadVersion': 1},
    'payload': {   'devices': [   {   'data': {'online': True, 'state': True},
                                      'dev_type': 'switch',
                                      'ha_type': 'switch',
                                      'icon': 'https://images.tuyaeu.com/smart/icon/bay1620957590631GNda/162977400141c4611efca.png',
                                      'id': '684745503ce90ee9454c_1',
                                      'name': 'Switch 1'},
                                  {   'data': {'online': True, 'state': True},
                                      'dev_type': 'switch',
                                      'ha_type': 'switch',
                                      'icon': 'https://images.tuyaeu.com/smart/icon/bay1620957590631GNda/162977400141c4611efca.png',
                                      'id': '684745503ce90ee9454c_2',
                                      'name': 'Switch 2'},
                                  {   'data': {'online': True, 'state': False},
                                      'dev_type': 'switch',
                                      'ha_type': 'switch',
                                      'icon': 'https://images.tuyaeu.com/smart/icon/bay1620957590631GNda/162977400141c4611efca.png',
                                      'id': '684745503ce90ee9454c_3',
                                      'name': 'Switch 3'},
                                  {   'data': {'online': True, 'state': False},
                                      'dev_type': 'switch',
                                      'ha_type': 'switch',
                                      'icon': 'https://images.tuyaeu.com/smart/icon/bay1620957590631GNda/162977400141c4611efca.png',
                                      'id': '684745503ce90ee9454c_7',
                                      'name': 'Switch 7'}],
                   'scenes': []}}

The device is partially supported by this plugin, but shows up as separate switches. I would like them to show up as accessories inside a power strip device (this is how it works with similar devices in Homekit)

github-actions[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.