[ST Edge] Lidl Bulb Zigbee Driver

I have made an edge driver for an Lidl zegbee Level and Color Temperature dimmable bulb
With the default libraries it takes 20 minutes to complete the driver.
For standard devices it is very easy to make or modify an edge driver.

Hopefully the documentation improves to be able to make more personalized drivers, especially with examples.

Good start !!! :+1:

fingerprints.yml

zigbeeManufacturer:
  - id: "LIDL/TS0502A"
    deviceLabel: Lidl Bulb
    manufacturer: _TZ3000_49qchf10
    model: TS0502A
    deviceProfileName: level-colortemperature

level-colorTemperature.yml

name: level-colortemperature
components:
- id: main
  capabilities:
  - id: switch
    version: 1
  - id: switchLevel
    version: 1
  - id: colorTemperature
    version: 1
  - id: refresh
    version: 1
  categories:
  - name: Light

config.yml

name: 'Zigbee Level ColorTemperature Bulb'
packageKey: 'Zigbee_Level_ColorTemperature_Bulb'
permissions:
  zigbee: {}

init.lua

local capabilities = require "st.capabilities"
local ZigbeeDriver = require "st.zigbee"
local defaults = require "st.zigbee.defaults"
local zcl_clusters = require "st.zigbee.zcl.clusters"
local OnOff = zcl_clusters.OnOff

local zigbee_bulb_driver_template = {
  supported_capabilities = {
    capabilities.switch,
    capabilities.switchLevel,
    capabilities.colorTemperature,
    capabilities.refresh
  },
  lifecycle_handlers = {
  },
}
-- run driver
defaults.register_for_default_handlers(zigbee_bulb_driver_template, zigbee_bulb_driver_template.supported_capabilities)
local zigbee_bulb = ZigbeeDriver("Zigbee_Level_ColorTemperature_Bulb", zigbee_bulb_driver_template)
zigbee_bulb:run()

6 Likes

This is a great, @Mariano_Colmenarejo!

I’ll move your post to an individual thread so it don’t get lost in upcoming updates.

Also, it would be great if you could share with the community a channel invitation to get your driver installed easily and this way more test it on their own Lidl Bulbs.

For more information on how to distribute your channel check these instructions.

2 Likes

@erickv and @Mariano_Colmenarejo in my opinion this needs to show correct icon: Light bulb, not a switch, something like this:


Also @Mariano_Colmenarejo when you create your channel can you please add me to it?

1 Like

Me too. Adding drivers from channels is easy an convenient way.

Throughout this morning I will make a channel with the shared drivers.
I have added in the same driver the Osram Classic dimmable bulb, which also works well.

By the way, they also work with “Gentle wake up app” even if it is groovy

I changed the icon to show a light bulb, although after a day the icons disappear and the thing icon appears. Until they fix it

I will add to channel all Lidl drivers that i have and ST Multiporpuse sensor whith Temperature reports setting in preferences

  • zigbee multi switch (Lidl fingerprint only)
  • zigbee switch (Lidl fingerprint only)
    -zigbee Level Color Temperature bulb (Lidl & Osram fingerprint)
  • zigbee contact (st Beta stock driver + Lidl fingerprint)
  • zigbee motion sensor (st Beta stock + Lidl fingerprint)
  • st multiportuse sensor
3 Likes

Can you add Sylvania and Ecosmart bulbs too?
Sylvania is is one of the Osram brands.
Sylvania:


Ecosmart:

@milandjurovic71,
I add them, but I can’t prove it.
install the bulb with searching nearby, if you choose by brand it does not install well, at least it happened to me when installing my osram.

I’ll readd them with “Scan Nearby”, and let you know if I find any issues.
I’ll wait to get invite for your channel :slightly_smiling_face:

@Mariano_Colmenarejo

By adding the following metadata description at the bottom of your profile.yaml you should get the device icon issue fixed:

  ...
  categories:
  - name: Light
metadata:
  deviceType: Light
  ocfDeviceType: oic.d.light
  deviceTypeId: Light

2 Likes

@erickv,
Yes I already did and it worked fine

2 Likes

7 posts were split to a new topic: [Release] Lidl Bulb Edge Driver

Please, what is the multi-purpose sensor st icon? or where can I find it.

Thanks

Try this OCF list:

2 Likes

You can also get those values by creating a device profile in the Developer Workspace > device profiles manager and querying the profile from the API.

smartthings deviceprofiles xxxx-xxxx-xxxx -y

The metadata for the multipurpose sensor is:

deviceType: MultiFunctionalSensor
ocfDeviceType: x.com.st.d.sensor.multifunction
deviceTypeId: MultiFunctionalSensor
4 Likes

@nayelyz & @Automated_House
Perfect!!
I already put it in the profile file and it is working.
Thank you

2 Likes

@Mariano_Colmenarejo do you think this driver would work for the Sengled Led ZigBee bulb?

All of zigbee Color Temperature Light Bulbs should work with this Edge driver, as long as fingerprint is added to driver.
There is small issue that does not effect bulb performance. Issue is with detail page of device, with preselected Color Temperature scale
Original Edge driver was created for Lidl bulbs, with range from 2200K to 6500K
Other bulbs have different temperature range. Here are couple examples
Lidl 2200K-6500K

Osram 2700K-6500K

Linkid 2700K-6500K

Keystone 2700K-5000K

Now the issue is temperature scale that is based on some percentage of range set in driver, inthis case 2200K to 6500K


If you have other brand selecting predefined lovest temperature should give you 3080K, however due preset driver temperature it goes to 2450K witch your 2700K-6500K can not render. Device gets stuck for couple of seconds and than goes to lowest possible value 2700K.
It would be the same issue for upper range, if bulbs like Keystone can produce only 5000K.
If there is a way to query Temperature range, that could be solved with one driver, or we need multiple drivers for different temperature range
2200K6500K
2700K6500K
2700K5000K
Hopefully this explains the issue

1 Like

I do not know if it will work well, if you want to try send me the model and manufacturer that you see in the IDE and I add it to the update that I am ending with on and / or off regulation

@Mariano_Colmenarejo is it possible to create 2 or 3 drivers with different Temperature range that when you adding fingerprint, you add them to correct driver? Something like:
Zigbee Color Temperature Bulb 2200K-6500K
Zigbee Color Temperature Bulb 2700K-6500K
Zigbee Color Temperature Bulb 2700K-5000K

I think it will be possible create differents profiles or subdrivers, give me time and I look at it. I’ve been busy with the level dimmer and the multiswitch

1 Like