make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.31k stars 514 forks source link

Request support for Brilliant Smart Sensor Light #2160

Closed ettiennegous closed 2 months ago

ettiennegous commented 2 months ago

Log message

2024-07-28 23:54:57.682 WARNING (MainThread) [custom_components.tuya_local.config_flow] Could not find device: bf145d28c6c6fca23dmsef

DPS information

{
  "modelId": "0000001902",
  "services": [
    {
      "actions": [],
      "code": "",
      "description": "",
      "events": [],
      "name": "Default service",
      "properties": [
        {
          "abilityId": 101,
          "accessMode": "rw",
          "code": "SetBright",
          "description": "Brightness settings",
          "name": "Brightness",
          "typeSpec": {
            "type": "value",
            "max": 255,
            "min": 25,
            "scale": 0,
            "step": 1,
            "unit": ""
          }
        },
        {
          "abilityId": 102,
          "accessMode": "rw",
          "code": "SetLux",
          "description": "Set the lux value for product day and night conversion",
          "name": "Lux",
          "typeSpec": {
            "type": "value",
            "max": 2000,
            "min": 0,
            "scale": 0,
            "step": 1,
            "unit": ""
          }
        },
        {
          "abilityId": 103,
          "accessMode": "rw",
          "code": "SetTime",
          "description": "Set sensing time from 10 seconds to 600 seconds",
          "name": "Duration",
          "typeSpec": {
            "type": "value",
            "max": 600,
            "min": 10,
            "scale": 0,
            "step": 1,
            "unit": "s"
          }
        },
        {
          "abilityId": 104,
          "accessMode": "rw",
          "code": "SetMode",
          "description": "Set sensor status, 0: automatic;1:Override;2:Flash",
          "name": "Mode",
          "typeSpec": { "type": "enum", "range": ["0", "1", "2"] }
        },
        {
          "abilityId": 105,
          "accessMode": "rw",
          "code": "SetCct",
          "description": "Set the color temperature of your device",
          "name": "Color Temp",
          "typeSpec": {
            "type": "value",
            "max": 255,
            "min": 0,
            "scale": 0,
            "step": 1,
            "unit": ""
          }
        },
        {
          "abilityId": 106,
          "accessMode": "rw",
          "code": "SetSens",
          "description": "Set sensitivity 0: low: 1: medium; 2: high",
          "name": "Sens",
          "typeSpec": { "type": "enum", "range": ["0", "1", "2"] }
        },
        {
          "abilityId": 107,
          "accessMode": "rw",
          "code": "SetOnOff",
          "description": "Set on and off lights",
          "extensions": { "attribute": "17" },
          "name": "OnOff",
          "typeSpec": { "type": "bool" }
        },
        {
          "abilityId": 108,
          "accessMode": "ro",
          "code": "PIR",
          "description": "PIR Sensing status reporting",
          "extensions": { "trigger": "direct" },
          "name": "Person Detected",
          "typeSpec": { "type": "bool" }
        }
      ]
    }
  ]
}

Product ID

WdI9bsgv2MKAhzxe

Product Name

Brilliant Smart Sensor Light

Information about how the device functions

This is the only product page I can still find that has the exact model on it https://www.davolucelighting.com.au/Brilliant-Smart-Security-Twin-LED-Flood-Light-With-Sensor.html

The updated models from brilliant looks slightly different https://brilliantlighting.com.au/search?q=smart%20floodlight

The device is supported by LocalTuya but for obvious reasons I would rather use Tuya-Local

Here is a screenshot from the Tuya Apps native screen

image

I got the below payload back from TinyTuya's wizard

   {
        "name": "Sensor Light Driveway",
        "id": "<redacted>",
        "key": "<redacted>",
        "mac": "<redacted>",
        "uuid": "<redacted>",
        "sn": "<redacted>",
        "category": "gyd",
        "product_name": "Brilliant Smart Sensor Light",
        "product_id": "WdI9bsgv2MKAhzxe",
        "biz_type": 0,
        "model": "AR0738",
        "sub": false,
        "icon": "https://images.tuyaeu.com/smart/icon/ay1536544275173jCJqA/15645369005dd6f4dfd1d.png",
        "mapping": {}
    },
make-all commented 2 months ago

If the device cannot be found on the network, then there is no point adding support for it

ettiennegous commented 2 months ago

vice cannot be found on the network, then there is no point adding support for it

@make-all, maybe the wrong log message I grabbed then. Other devices are being discovered and added, they are on the same sub-net. I have tried to manually add it before and get the following

2024-07-29 09:03:46.724 WARNING (SyncWorker_53) [custom_components.tuya_local.device] Test protocol error 904: Unexpected Payload from Device

image

make-all commented 2 months ago

See #522

ettiennegous commented 2 months ago

@make-all do you have any other troubleshooting advice?

I have several other devices connected through tuya-local that all work as expected on the same subnet. I get the following output from tinytuya and the two missbehaving devices have a polling failed msg on them. Is there a way to turn verbose logging on for the tuya local so I can get more diagnositics when it fails to add?

As mentioned before these devices do work via local-tuya so I suspect something else is up.

image