Lumary RGB Lights - Wifi/Bluetooth - Edit solved with Local Tuya

Hey folks, I am at my whits end here. I have these lights:

I have configured them with Tuya, they show up as 5 devices, but 10 entities. (Picture 1) and picture two, you can see I tried to add them to groups (Picture 2)

I want to be able to as a group, control the main lights (labled kitchen lights) and as a group control the night lights.

I can do this in google home, by putting them in an area, but I can’t change the area in home assistant.

I would like to eventually accomplish being able to have a button on my dashboard to control them - but in their current state I cannot.

So, the main light shows as
light.lumary_6_smart_rgbai_ultra_thin_downlight_e1

whereas the “night light” shows as:

switch.lumary_6_smart_rgbai_ultra_thin_downlight_e1_2

I can’t find a way to change it to a light, instead of a switch. GUI or yaml.

image


picture two, since I couldn’t post above

I have tried changing them through Change device type of a switch - Home Assistant - with no luck

Hey there, Casy,

Did you ever figure this out? I have the same lights, and I have successfully added them with local tuya, But they’re only showing two attributes (on/off and “do not disturb” whatever that is). I’d like to add all the good stuff so I can control the led ring and the downlight!

Thanks!

Yeah - let me dive into what I have.

I will preface my response with this - local tuya is not my long term solution, I am in the process of flashing these in the coming days - to basically remove the tuya integration entirely. Give me a bit to compile what I have to make it work for you in local tuya

Okay - sorry for the delay. I am having a hard time remembering exactly what I did, but essentially there are two entities exposed (the downlight, and the ring light)

I will include both the UI and text based options for you to make it easier on you.

Note that when you configure it, you can add/edit an entity on the device: this is one light and these are the entities:
image

The entities will need the following:

White - Downlight:

* DP: 63
* brightness value: 22
* Color temp: 23
* Color Mode: 21
* color: 24
* Scene: 25

Color entity - “ring”:

* DP: 54
* Color Mode: 55
* Color: 24
* Scene: 55

I hope this helps you - like I said I am going to be flashing esphome onto these as my last stand because as it is currently, these lights are horrible (for me) with local tuya as they disconnect and become unresponsive too often. I recommend if this is something you consider down the line to look into this thread. https://community.home-assistant.io/t/lumary-tuya-recessed-light-rgbic/765545/24

1 Like

Appreciate your help, I have the ring light and downlight entities now, I’m in the process of dumbing down my smart switches that control the lights to avoid switch confusion (adding a shelly relay to always have power to the lights, even when the wall switch is off). Thank you for the link and for following up!

Came across this thread trying to get these lights dialed in. I have some slight modifications to suggest to your config. Instead of using the DP ID of 55 for scene for the ring, use 56. For whatever reason, the scene/effect values didn’t populate automatically for these bulbs but did for some other Tuya bulbs. So I went ahead and documented all the scene codes from the mobile app by grabbing the values from the Tuya IOT API each time I changed the scene. In the optional scene values when configuring the device, use these to map the scenes below. See screenshot for where to paste them.

ARUKUlLgAABkAMFhALQwALVSAMRj: Iceland Blue
ARYKZGRgAABkAJJfAMZg: Glacier Express
ARcDXl5gAABkADgvAB5cANVFARpk: Sea of Clouds
ARgDZGTgAABkALI5AQpkAS1kAT9k: Fireworks at sea
ARkKVFRgAABkALEsAMBk: Hut in the snow
ARoDS0vgAABkAOA5AQlT: Firefly Night
ARsDX19gAABkAK45AMRdAPlk: Northland
ARwKWlrgAABSAJ1kAI5k: Grassland
AR0DUlLgAABkAK5kAKZkAMFkAMxk: Northern Lights
AR4KUlLgAABkABlkACJeACxbABRkAAxk: Late Autumn
AUcFTU0AAABkAQNFAMFD: Dream meteor
AUgGMjIAAABkAU5BAB9J: Early Spring
AUkHDg4AAABkANo3AVJBAFw3: Spring outing
AUoIMjIAAABkAPdQAClPAQ04AKMn: Night service
AUsJMjIAAABkAQNFAEE6ACVLAF5C: Wind chime
AUwMMjIAAABkANhNAMFDAQNFAFw3: City Lights
AU0NMjIAAABkAChkAF5CAMFkAP9Q: Color marbles
AU4OMjIAAABkAD5fAL5c: Summer train
AU8PGRkAAABkALxkAC1OAABkAGQ8: Christmas Eve
ASkCYWHgAABkAAtkANlkACtkAJFkALlk: Christmas
AVAQMjIAAABkAOZHAGQ8ARlNALg5: Dream Sea
AR8CX19gAABkARBkANJkAK1kAItk: Game
ASAKVVVgAABkAMJYAT4zAP9GAR1k: Holiday
ASEDPDxgAABkAL8YAQQX: Work
ASIEZGRgAABkANdcALxTADceACw/AWE/: Party
ASMCZGRgAABkAQhLALEvAM1X: Trend
ASQKS0tgAABkALwmANZVARhkAPlN: Sports
ASUDQ0NgAABkALc1AJtUAM1h: Meditation
ASYBWVngAABkARlHAUk9AM1hACZk: Dating
ASwKSEhgAABkAD1kAQxbALpJABdh: Thanksgiving Day
ASoBZGRgAABkARVkAQVkAUVkAS9k: Valentine’s Day
ASsDWlrgAABkAABXARZkANpkALNkAJVk: Halloween
AS0CWVlgAABkAJxjALxiAHtg: Forest Day
AS4DWlpgAABkAT42AQxWAR8j: Mother’s Day
AS8CZGTgAABkANxCALZKAOFN: Father’s Day
ATACXl5gAABkAABkAHhkALtk: Football Day
ATMDUlJgAABkAIhQANI5APsn: Summer Idyll
ATQDXV1gAABkAPc2ATUrAMY0AJEp: Dream of the sea
ATUDUlJgAABNARJiATBd: Love and dream
ATYCSUlgAABkAGY8ADxJAB5k: Spring Fishing
ATcKWlpgAABkADNYABhkAQBFAONeAKww: Neon World

1 Like

Thanks for the details. How were you able to get 2 entities? I am using Local tuya and only able to get 1 entity configured with ID 20. Things work fine but controlling the ring and the light together is messy.

Protocol Version: 3.4

@allanak

World’s biggest thank you. It wasn’t entirely obvious to me as to how to acquire the scene values, especially since HA LocalTuay claims they should be automatically snatched. This kept me in a perpetual for loop. Your comment about ‘Tuya IOT API’ liberated me.

I have three more scenes for my lights, though I think ‘Summer Wind’ is in error.

ATgCV1fgAABkAQxkARpBAUdZABVkADw4: Dreamland
ATkCV1fgAABkAQxkARpBAUdZABVkADw4: Summer Wind
AToCXV3gAABNALReARxkAOhJAMZf: Planet Journey

I am considering these lights, just wondering for those who have these integrated in Home Assistant how reliable they are? I read that @ccbde was having connectivity issues with them and local tuya, is that the case for everyone?

Hey. Thanks for sharing this. I’ve been spending some time setting these lights up in local tuya. When I am configuring, DP ID 56 isn’t available as an option to select so I have to pick 55. Did you do anything specific to make ID 56 available?

Use Studio Code Server and save this as
CONFIG/custom_components/localtuya/templates/Lumary_RGBAI_Config.yml

Use it when adding the lights.

- light:
    friendly_name: Downlight E1 24
    entity_category: None
    brightness: '22'
    color_temp: '23'
    brightness_lower: 29
    brightness_upper: 1000
    color_mode: '21'
    color_mode_set: '0'
    color: '24'
    color_temp_min_kelvin: 2700
    color_temp_max_kelvin: 6500
    color_temp_reverse: false
    scene: '25'
    scene_values: {}
    music_mode: false
    id: '63'
    platform: light
    icon: ''
- light:
    friendly_name: Colour E1 24
    entity_category: None
    brightness_lower: 29
    brightness_upper: 1000
    color_mode: '55'
    color_mode_set: '0'
    color: '24'
    color_temp_min_kelvin: 2700
    color_temp_max_kelvin: 6500
    color_temp_reverse: false
    scene: '56'
    scene_values:
      ARUKUlLgAABkAMFhALQwALVSAMRj: Iceland Blue
      ARYKZGRgAABkAJJfAMZg: Glacier Express
      ARcDXl5gAABkADgvAB5cANVFARpk: Sea of Clouds
      ARgDZGTgAABkALI5AQpkAS1kAT9k: Fireworks at Sea
      ARkKVFRgAABkALEsAMBk: Hut in the Snow
      ARoDS0vgAABkAOA5AQlT: Firefly Night
      ARsDX19gAABkAK45AMRdAPlk: Northland
      ARwKWlrgAABSAJ1kAI5k: Grassland
      AR0DUlLgAABkAK5kAKZkAMFkAMxk: Northern Lights
      AR4KUlLgAABkABlkACJeACxbABRkAAxk: Late Autumn
      AUcFTU0AAABkAQNFAMFD: Dream Meteor
      AUgGMjIAAABkAU5BAB9J: Early Spring
      AUkHDg4AAABkANo3AVJBAFw3: Spring Outing
      AUoIMjIAAABkAPdQAClPAQ04AKMn: Night Service
      AUsJMjIAAABkAQNFAEE6ACVLAF5C: Wind Chime
      AUwMMjIAAABkANhNAMFDAQNFAFw3: City Lights
      AU0NMjIAAABkAChkAF5CAMFkAP9Q: Color Marbles
      AU4OMjIAAABkAD5fAL5c: Summer Train
      AU8PGRkAAABkALxkAC1OAABkAGQ8: Christmas Eve
      AVAQMjIAAABkAOZHAGQ8ARlNALg5: Dream Sea
      AR8CX19gAABkARBkANJkAK1kAItk: Game
      ASAKVVVgAABkAMJYAT4zAP9GAR1k: Holiday
      ASEDPDxgAABkAL8YAQQX: Work
      ASIEZGRgAABkANdcALxTADceACw/AWE/: Party
      ASMCZGRgAABkAQhLALEvAM1X: Trend
      ASQKS0tgAABkALwmANZVARhkAPlN: Sports
      ASUDQ0NgAABkALc1AJtUAM1h: Meditation
      ASYBWVngAABkARlHAUk9AM1hACZk: Dating
      ASkCYWHgAABkAAtkANlkACtkAJFkALlk: Christmas
      ASoBZGRgAABkARVkAQVkAUVkAS9k: Valentine’s Day
      ASsDWlrgAABkAABXARZkANpkALNkAJVk: Halloween
      ASwKSEhgAABkAD1kAQxbALpJABdh: Thanksgiving Day
      AS0CWVlgAABkAJxjALxiAHtg: Forest Day
      AS4DWlpgAABkAT42AQxWAR8j: Mother’s Day
      AS8CZGTgAABkANxCALZKAOFN: Father’s Day
      ATACXl5gAABkAABkAHhkALtk: Football Day
      ATMDUlJgAABkAIhQANI5APsn: Summer Idyll
      ATQDXV1gAABkAPc2ATUrAMY0AJEp: Dream of the Sea
      ATUDUlJgAABNARJiATBd: Love and Dream
      ATYCSUlgAABkAGY8ADxJAB5k: Spring Fishing
      ATcKWlpgAABkADNYABhkAQBFAONeAKww: Neon World
      ATgCV1fgAABkAQxkARpBAUdZABVkADw4: Dreamland
      ATkCV1fgAABkAQxkARpBAUdZABVkADw4: Summer Wind
      AToCXV3gAABNALReARxkAOhJAMZf: Planet Journey
    music_mode: false
    id: '54'
    platform: light
    icon: ''

@theBlbDan thank you for the help. I’ll give that a try.