tuya / tuya-home-assistant

Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
MIT License
874 stars 206 forks source link

Brilliant Smart WiFi Security Floodlight with Sensor #285

Open AdyLord opened 3 years ago

AdyLord commented 3 years ago

Can you please add support for this smart light? https://www.brilliantlighting.com.au/product/smart-wifi-security-light-f4c9f6

Device normal info

Device info (please complete the following information, which can be found in log): like this: { "active_time": 1617093929, "biz_type": 0, "category": "gyd", "create_time": 1617093514, "icon": "smart/icon/ay1536544275173jCJqA/15645369005dd6f4dfd1d.png", "id": "bfc525edf935b467835y8u", "ip": "103.x.x.x", "lat": "-32.x", "local_key": "4a834b7aa6591efa", "lon": "115.x", "name": "Shed entry light", "online": true, "owner_id": "xxx", "product_id": "WdI9bsgv2MKAhzxe", "product_name": "Brilliant Smart Sensor Light", "status": [], "sub": false, "time_zone": "+08:00", "uid": "eu1567753959157NWH7Z", "update_time": 1627771482, "uuid": "8ed4f1f97f02b771" },

Device specifications (please complete the following information, which can be found in log): 2021-08-01 13:54:07 DEBUG (SyncWorker_4) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/bfc525edf935b467835y8u/specifications, params = None, body = None, headers = {'client_id': 'xxxxx', 'sign': 'xxxxx', 'sign_method': 'HMAC-SHA256', 'access_token': 'xxxxx', 't': '1627797247754', 'lang': 'en'} 2021-08-01 13:54:08 DEBUG (SyncWorker_4) [tuya iot] Response: { "code": 2009, "msg": "not support this device", "success": false, "t": 1627797247954 }

tsutsuku commented 3 years ago

You can create a ticket in the Tuya service console with your device specifications. https://service.console.tuya.com/8/2/create?step=3&id=01030503&source=content_feedback.

some-guy-in-oz commented 3 years ago

Just to expand on the reason for this, the call to get the "Device specifications" is reporting the device doesn't support that request and therefore the Tuya V2 integration can't use it. To get this fixed, you'll need to raise a support request with Tuya Cloud support, basically posting the info in your first post above. The cloud API team should then make some changes so that the device will report what functions it supports. They're pretty fast in responding.

djhampson commented 3 years ago

Thanks @some-guy-in-oz - Ticket submitted: ID:T20210921000058

djhampson commented 3 years ago

Bad news:

"Hello, the category of your device is "qt", which was wrongly defined when the manufacturer generated the device. I have checked the function points of the device, which are all customized by the manufacturer and do not conform to the cloud standard instruction set. They are only used on APP."

I'm not sure exactly what this means but I have asked if this means we cannot use the Brilliant Smart Lights with the api.

some-guy-in-oz commented 3 years ago

Sounds like you might need to send a support request to Brilliant themselves. What control were you hoping to get over it using HA?

djhampson commented 3 years ago

The main thing was controlling what mode they are in (auto, override, flash, off) and also being able to access the motion sensor status

Will give Brilliant a go.

On Wed, 22 Sept 2021, 9:17 pm some-guy-in-oz, @.***> wrote:

Sounds like you might need to send a support request to Brilliant themselves. What control were you hoping to get over it using HA?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tuya/tuya-home-assistant/issues/285#issuecomment-924833467, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFCOCPRT64PBXHT27XDX57LUDG3M3ANCNFSM5BKZPE5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

some-guy-in-oz commented 3 years ago

You may be able to work around by creating a click-to-run automation from within the app to switch to each mode. These should get picked up by HA as scenes that you can activate. I doubt you will get motion sensor status. I have a similar Brilliant security light and the motion sensor state isn't available (not even in the app).

AdyLord commented 3 years ago

It would be great to at least be able to see it's history of when the light was on/off. Controlling/monitoring it's mode would also be an advantage (Mine seems to always be off making it useless!).

djhampson commented 3 years ago

Tuya confirmed they cannot do anything.

I've sent an email to support@brilliantsmart.com.au requesting some help with standardising the api instructions set. Would be good if others can send them an email too.

In the meantime I'm going to create more Click-to-runs however this is painful as I've got 6 lights and think I need 3 click-to-runs each.

I'm thinking of creating an automation that runs regularly and set the lights back to Auto regardless of whatever mode they are in.

some-guy-in-oz commented 3 years ago

You can control multiple devices with a single click to run

iJuiceman commented 1 year ago

I know I am dragging up an old thread, but did you manage to get this sorted ? I have a Floodlight and a Brilliant INTELLISCANNER II PIR Security Sensor, both showing as Unsupported

ettiennegous commented 2 months ago

I have raised a similiar issue here for this integration https://github.com/make-all/tuya-local/issues/2160