Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support bluetooth devices through a hub/bridge #275

Closed
felipecrs opened this issue Nov 16, 2022 · 10 comments
Closed

Support bluetooth devices through a hub/bridge #275

felipecrs opened this issue Nov 16, 2022 · 10 comments

Comments

@felipecrs
Copy link
Contributor

felipecrs commented Nov 16, 2022

I have some bluetooth bulbs which works through a bluetooth hub. The tuya-cli seems to recognize them:

tuya-cli wizard
[
  {
    name: 'Hub Bluetooth e ZigBee',
    id: 'eb41b8f336925ed5eczxwg',
    key: '<hidden>',
    subDevices: [
      {
        name: 'Luz do corredorzinho',
        id: 'eb4ea98uq24mj6d7',
        cid: 'dc234dc5aea1'
      }
    ]
  }
]

Adding the hub itself to Tuya Local doesn't work:

image

And using any combination of id/sub-id/cid/key does not seem to work either.

@make-all make-all added the enhancement New feature or request label Nov 17, 2022
@make-all
Copy link
Owner

This will not be possible until the upstream library adds subdevice support, which it currently lacks.

@make-all
Copy link
Owner

It looks like the support has been added to tinytuya (after the 1.8.0 release was cut, so not yet released), so it will become possible to work on this issue soon.

@tony-butchart
Copy link

Interested in this functionality too, looks like v1.9.0 of tinytuya has been released now with support for gateways also. Happy to participate in any testing, I'm currently using a Bluetooth gateway with some lights and sensors.

@felipecrs
Copy link
Contributor Author

@tony-robson out of curiosity, are your lights RGB?

@make-all
Copy link
Owner

Progress on the underlying sub-device support is being tracked on issue #70.

@tony-butchart
Copy link

@tony-robson out of curiosity, are your lights RGB?

I have both kinds, mostly RGB but also some Warm White too.

@make-all Thanks, I'll keep an eye on that issue then.

@felipecrs
Copy link
Contributor Author

mostly RGB

When I use the official Tuya HA integration, it doesn't allow me to change colors. Only the white temperature. Have you observed the same as well? My hope is that the same issue won't occur with Tuya Local.

@tony-butchart
Copy link

tony-butchart commented Dec 29, 2022

mostly RGB

When I use the official Tuya HA integration, it doesn't allow me to change colors. Only the white temperature. Have you observed the same as well? My hope is that the same issue won't occur with Tuya Local.

I haven't tested extensively with the Official Tuya Integration, instead I've been using a fork of localtuya that has Gateway Support. The problem I have had using that integration though could be similar to yours, I found unless I manually initialized the DP values of the sub devices (read: RGB Lights) using tinytuya/tuya-cli each time the Gateway was restarted then those functions wouldn't work In the integration.

I suspect this could be due to the Gateway clearing the values for all sub devices each time it is reset, so when the integration was polling a DP it was getting an undefined return causing issues with the integrations logic. More info in an issue i submitted here.

Hope that helps some.

@felipecrs
Copy link
Contributor Author

Awesome. Thank you!

@make-all make-all added subdevice Requires subdevice support and removed enhancement New feature or request labels Feb 18, 2023
@make-all make-all added awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release labels Apr 29, 2023
@make-all make-all removed awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release subdevice Requires subdevice support labels May 7, 2023
@make-all make-all closed this as completed May 7, 2023
@felipecrs
Copy link
Contributor Author

I'm attempting to connect this device but I'm running into #1425.

I'm just pinging this issue wondering if anyone involved here that had such device was able to make it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants