tuya/tuya-home-assistant

Request support for LED BULB B509Z2

Open

#970 aberto em 10 de jan. de 2024

Ver no GitHub
 (2 comments) (3 reactions) (0 assignees) (206 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (960 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Device normal info

  • Tuya
  • Model: LED BULB B509Z2

I recently got this from china: https://www.aliexpress.com/item/1005005810825817.html Packaging is generic, but it reports as LED BULB B509Z2 with id kxj1x0hj

I couldn't get the information from the log, do I need to do something after enabling the logging in the config and restarting? Like readding the device to Tuya or something?

I was able the get the diagnostics information which contains data like the example in the issue template, so maybe this is enough?

{
  "home_assistant": {
    "installation_type": "Home Assistant Container",
    "version": "2023.9.2",
    "dev": false,
    "hassio": false,
    "virtualenv": false,
    "python_version": "3.11.5",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Vienna",
    "os_name": "Linux",
    "os_version": "6.1.21-v8+",
    "run_as_root": true
  },
  "custom_components": {},
  "integration_manifest": {
    "domain": "tuya",
    "name": "Tuya",
    "codeowners": [
      "@Tuya",
      "@zlinoliver",
      "@frenck"
    ],
    "config_flow": true,
    "dependencies": [
      "ffmpeg"
    ],
    "dhcp": [
		"redacted"
    ],
    "documentation": "https://www.home-assistant.io/integrations/tuya",
    "integration_type": "hub",
    "iot_class": "cloud_push",
    "loggers": [
      "tuya_iot"
    ],
    "requirements": [
      "tuya-iot-py-sdk==0.6.6"
    ],
    "is_built_in": true
  },
  "data": {
    "endpoint": "https://openapi.tuyaeu.com",
    "auth_type": 0,
    "country_code": "43",
    "app_type": "smartlife",
    "mqtt_connected": true,
    "disabled_by": null,
    "disabled_polling": false,
    "name": "Decke Wohnzimmer",
    "model": "LED BULB B509Z2",
    "category": "dj",
    "product_id": "kxj1x0hj",
    "product_name": "LED BULB B509Z2",
    "online": false,
    "sub": false,
    "time_zone": "+01:00",
    "active_time": "2024-01-03T06:30:35+00:00",
    "create_time": "2024-01-03T06:30:35+00:00",
    "update_time": "2024-01-03T06:30:55+00:00",
    "function": {
      "switch_led": {
        "type": "Boolean",
        "value": {}
      },
      "work_mode": {
        "type": "Enum",
        "value": {
          "range": [
            "white",
            "colour",
            "scene",
            "music"
          ]
        }
      },
      "bright_value_v2": {
        "type": "Integer",
        "value": {
          "min": 10,
          "max": 1000,
          "scale": 0,
          "step": 1
        }
      },
      "temp_value_v2": {
        "type": "Integer",
        "value": {
          "min": 0,
          "max": 1000,
          "scale": 0,
          "step": 1
        }
      },
      "countdown_1": {
        "type": "Integer",
        "value": {
          "unit": "s",
          "min": 0,
          "max": 86400,
          "scale": 0,
          "step": 1
        }
      }
    },
    "status_range": {},
    "status": {},
    "home_assistant": {
      "name": "Decke Wohnzimmer",
      "name_by_user": null,
      "disabled": false,
      "disabled_by": null,
      "entities": []
    }
  }
}

Guia do colaborador