iRayanKhan / homebridge-tuya

A Homebridge plugin to control Tuya devices locally.
MIT License
392 stars 164 forks source link

New Device: Australian “Grid Connect” branded smart lighting #261

Open mike43 opened 3 years ago

mike43 commented 3 years ago

Device Name/Type: Arlec Grid Connect Smart 40W 4000lm LED Batten Light DETA Grid Connect Smart 18W 1900lm T8 Tube Arlec Grid Connect Smart 15W 1350lm PAR38 e27 Globe Plugin version: 2.0.1 (tested on HOOBS 3.3.5) Product links: https://www.bunnings.com.au/arlec-grid-connect-smart-40w-4000lm-led-batten-light_p0117511 https://www.bunnings.com.au/deta-grid-connect-smart-18w-1900lm-daylight-t8-tube_p0111511 https://www.bunnings.com.au/arlec-grid-connect-smart-15w-1350lm-cct-par38-es-e27-globe_p0111510

Working/non-working capabilities: Devices function as expected, however log output indicates all operations trigger a “command 8” response.

Config:

    {
        "name": "DET018HA",
        "type": "SimpleDimmer",
        "manufacturer": "DETA",
        "model": "T8 LED",
        "id": "xxxx"
        "key": "xxxx",
        "dpPower": "20",
        "dpMode": "21",
        "dpBrightness": "22",
        "minBrightness": 10,
        "scaleBrightness": 1000
    },
    {
        "name": "GLD302HA",
        "type": "TWLight",
        "manufacturer": "Arlec",
        "model": "PAR38 Floodlight",
        "id": "xxxx",
        "key": "xxxx",
        "dpPower": "20",
        "dpMode": "21",
        "dpBrightness": "22",
        "dpColorTemperature": "23",
        "minBrightness": 10,
        "scaleBrightness": 1000,
        "scaleWhiteColor": 1000,
        "maxWhiteColor": 1000
    },
    {
        "name": "ELGD11HA",
        "type": "SimpleDimmer",
        "manufacturer": "Arlec",
        "model": "LED Batten",
        "id": "xxxx",
        "key": "xxxx",
        "dpPower": "20",
        "dpMode": "21",
        "dpBrightness": "22",
        "minBrightness": 10,
        "scaleBrightness": 1000
    },

Log output for one of my PAR38 floodlights:

Failed to find plugin to handle accessory GLD302HA 2
[TuyaLan] Marked GLD302HA 2 unreachable by faulting Service.GLD302HA 2.On
[TuyaLan] Discovered GLD302HA 2 (REDACTED) identified as TWLight (3.3)
[Tuya] Changing ping gap for GLD302HA 2 to 9s
[Tuya DEBUG] reconnect called for GLD302HA 2
[TuyaLan] Connected to GLD302HA 2
[Tuya] Sending first query to GLD302HA 2 (3.3)
[Tuya] Heard back from GLD302HA 2 with command 10
[TuyaLan] Ready to handle GLD302HA 2 (TWLight:3.3) with signature {"20":false,"21":"white","22":1000,"23":879,"25":"000e0d0000000000000000c80000","26":0}
[Tuya] Sending GLD302HA 2 {"20":false}
[Tuya] Heard back from GLD302HA 2 with command 8
[Tuya] Sending GLD302HA 2 {"20":true}
[Tuya] Heard back from GLD302HA 2 with command 8
[Tuya] Sending GLD302HA 2 {"23":406}
[Tuya] Heard back from GLD302HA 2 with command 8
[Tuya] Sending GLD302HA 2 {"23":238}
[Tuya] Heard back from GLD302HA 2 with command 8
[Tuya] Sending GLD302HA 2 {"23":30}
[Tuya] Heard back from GLD302HA 2 with command 8
[Tuya] Sending GLD302HA 2 {"23":26}
[Tuya] Heard back from GLD302HA 2 with command 8
[Tuya] Sending GLD302HA 2 {"23":32}
[Tuya] Heard back from GLD302HA 2 with command 8
[Tuya] Sending GLD302HA 2 {"20":false}
[Tuya] Heard back from GLD302HA 2 with command 8

Operations were all successful. All of the keys/ids are correct, and the device is functioning as I’d expect. Seems like a number of devices with open Issues are reporting back with “command 8”.

Hope this helps any frustrated users who have invested in the (Tuya powered) Grid Connect family of products marketed under various brands in Australia.

santia3o commented 3 years ago

Thanks Mike, Used your PAR38 Flood Light Setup to get my B22 Bayonet GRID Connect TWLight Globes working. Also added B22 Bayonet GRID Connect RGBTWLight Globes working config Product Links TWLight - https://www.bunnings.com.au/arlec-grid-connect-smart-9-5w-806lm-cct-bc-b22-globe_p0111502 RGBTWLight -https://www.bunnings.com.au/arlec-grid-connect-smart-9w-806lm-rgb-cct-bc-b22-globe_p0111500

                "type": "TWLight",
                "name": "Hallway 2",
                "id": "xxxxxx",
                "key": "xxxxxx",
                "manufacturer": "Arlec",
                "model": "GRID Connect Bayonet B22",
                "dpPower": "20",
                "dpMode": "21",
                "dpBrightness": "22",
                "dpColorTemperature": "23",
                "minBrightness": 10,
                "scaleBrightness": 1000,
                "scaleWhiteColor": 1000,
                "maxWhiteColor": 1000

                "type": "RGBTWLight",
                "name": "RGB Lounge 1",
                "id": "xxxxx",
                "key": "xxxx",
                "manufacturer": "Arlec",
                "model": "GRID Connect Bayonet B22",
                "scaleBrightness": 1000,
                "dpPower": 20,
                "dpMode": 21,
                "dpBrightness": 22,
                "dpColor": 24,
                "colorFunction": "HSB"
mike43 commented 3 years ago

Hi there, Great to hear!

I must admit I was a little disheartened when I first looked into this a couple months back, with others trying yet not succeeding to get Grid Connect devices to work with local control. The alternative tuya-web bridge works, but the latency was horrible especially when you have a sensor automated. I’ve also enabled an IR receiver from Arlec that I used as a garage door controller without a close sensor. There was some similar code published to support a Kogan garage controller device (within homebridge-tuya) that I adapted to surface in HomeKit.

One point to note is that local control does not mean you are completely detached from the Tuya mothership. While the id remains a hardcoded constant, if you factory reset a device, the key will change and you’ll need to rediscover. I suspect this is simply something that is mandated as being part of the larger Tuya ecosystem and probably documented somewhere if you look hard enough. The pairing ceremony (via Smartlife etc.) app does not seem to affect the key that Tuya generate and store in their cloud, so good to re-pair as necessary.

All the best, Mike

On 18 Jun 2021, at 10:08 pm, santia3o @.***> wrote:

Thanks Mike, Used your PAR38 Flood Light Setup to get my B22 Bayonet GRID Connect TWLight Globes working. Also added B22 Bayonet GRID Connect RGBTWLight Globes working config Product Links TWLight - https://www.bunnings.com.au/arlec-grid-connect-smart-9-5w-806lm-cct-bc-b22-globe_p0111502 https://www.bunnings.com.au/arlec-grid-connect-smart-9-5w-806lm-cct-bc-b22-globe_p0111502 RGBTWLight -https://www.bunnings.com.au/arlec-grid-connect-smart-9w-806lm-rgb-cct-bc-b22-globe_p0111500 https://www.bunnings.com.au/arlec-grid-connect-smart-9w-806lm-rgb-cct-bc-b22-globe_p0111500 "type": "TWLight", "name": "Hallway 2", "id": "xxxxxx", "key": "xxxxxx", "manufacturer": "Arlec", "model": "GRID Connect Bayonet B22", "dpPower": "20", "dpMode": "21", "dpBrightness": "22", "dpColorTemperature": "23", "minBrightness": 10, "scaleBrightness": 1000, "scaleWhiteColor": 1000, "maxWhiteColor": 1000

            "type": "RGBTWLight",
            "name": "RGB Lounge 1",
            "id": "xxxxx",
            "key": "xxxx",
            "manufacturer": "Arlec",
            "model": "GRID Connect Bayonet B22",
            "scaleBrightness": 1000,
            "dpPower": 20,
            "dpMode": 21,
            "dpBrightness": 22,
            "dpColor": 24,
            "colorFunction": "HSB"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iRayanKhan/homebridge-tuya/issues/261#issuecomment-864066030, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABF2EVJ34W6BA3CLGPBEGPLTTNHO5ANCNFSM43P37UBQ.