tuya/tuya-home-assistant

Unsupported switch

Open

#818 ouverte le 20 juin 2022

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés) (206 forks)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (960 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

Device normal info

Device info (please complete the following information, which can be found in log):

{
    "endpoint": "https://openapi.tuyaeu.com",
    "auth_type": 0,
    "country_code": "48",
    "app_type": "tuyaSmart",
    "mqtt_connected": true,
    "disabled_by": null,
    "disabled_polling": false,
    "name": "ZigBee Switch-t",
    "model": "zigbee \u65e0\u7ebf\u5f00\u5173(T1)",
    "category": "wxkg",
    "product_id": "x7mej5oc",
    "product_name": "ZigBee Switch-t",
    "online": true,
    "sub": true,
    "time_zone": "+01:00",
    "active_time": "2022-06-15T21:46:32+00:00",
    "create_time": "2022-06-15T21:46:32+00:00",
    "update_time": "2022-06-15T21:46:32+00:00",
    "function": {},
    "status_range": {
      "switch1_value": {
        "type": "Enum",
        "value": {
          "range": [
            "single_click",
            "double_click",
            "long_press"
          ]
        }
      },
      "battery_percentage": {
        "type": "Integer",
        "value": {
          "unit": "%",
          "min": 0,
          "max": 100,
          "scale": 0,
          "step": 1
        }
      }
    },
    "status": {
      "switch1_value": "single_click",
      "battery_percentage": 89
    },
    "home_assistant": {
      "name": "ZigBee Switch-t",
      "name_by_user": null,
      "disabled": false,
      "disabled_by": null,
      "entities": []
    }
  }

Guide contributeur