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

LIVARNOLUX bulb E14 (TS0505A) #492

Closed
bbrowaros opened this issue Dec 3, 2020 · 8 comments
Closed

LIVARNOLUX bulb E14 (TS0505A) #492

bbrowaros opened this issue Dec 3, 2020 · 8 comments
Labels
new device Request to add support for new device

Comments

@bbrowaros
Copy link

bbrowaros commented Dec 3, 2020

Device description
Light bulb model TS0505A (bought from LIDL under LIVARNOLUX mark)

Zigbee2mqtt page
https://www.zigbee2mqtt.io/devices/TS0505A.html

MQTT message with device information

{"dateCode":"","description":"Livarno Lux E14 candle RGB","friendly_name":"0x842e14fffe118a60","hardwareVersion":1,"ieeeAddr":"0x842e14fffe118a60","lastSeen":1607075912480,"manufacturerID":4098,"manufacturerName":"_TZ3000_odygigth","model":"HG06106B","modelID":"TS0505A","networkAddress":41962,"powerSource":"Mains (single phase)","type":"Router","vendor":"Lidl"}

MQTT messages from device
Device is not updating its state as far as I can see.

MQTT state change commands
updating color temp via:

zigbee2mqtt/0x842e14fffe118a60/set {"color_temp": 500}

answer:

zigbee2mqtt/0x842e14fffe118a60 {"color":{"x":0.526676280311873,"y":0.41329727450763},"color_temp":500,"linkquality":65}

Tested other payloads:
1.

zigbee2mqtt/0x842e14fffe118a60/set {"state": "TOGGLE"}

no answer while changing

zigbee2mqtt/0x842e14fffe118a60/set {"state": "ON"}

answer:

zigbee2mqtt/0x842e14fffe118a60 {"color":{"x":0.526676280311873,"y":0.41329727450763},"color_temp":500,"linkquality":86,"state":"ON"}
zigbee2mqtt/0x842e14fffe118a60/set {"state": "OFF"}

answer:

zigbee2mqtt/0x842e14fffe118a60 {"color":{"x":0.526676280311873,"y":0.41329727450763},"color_temp":500,"linkquality":84,"state":"OFF"}

Brightness change can be changed via:

zigbee2mqtt/0x842e14fffe118a60/set {"brightness": 10}

answer:

zigbee2mqtt/0x842e14fffe118a60 {"brightness":10,"color":{"x":0.526676280311873,"y":0.41329727450763},"color_temp":500,"linkquality":84,"state":"ON"}

Color change can be done via:

zigbee2mqtt/0x842e14fffe118a60/set {"color": {"r": 10, "b": 10, "g": 10}}

answer:

zigbee2mqtt/0x842e14fffe118a60 {"brightness":10,"color":{"x":0.3227,"y":0.329},"color_temp":165,"linkquality":84,"state":"ON"}

or

zigbee2mqtt/0x842e14fffe118a60/set {"color": {"x": 0.123, "y": 0.123}}

answer:

zigbee2mqtt/0x842e14fffe118a60 {"brightness":10,"color":{"x":0.123,"y":0.123},"color_temp":37,"linkquality":86,"state":"ON"}
@bbrowaros bbrowaros added the new device Request to add support for new device label Dec 3, 2020
@Anjerlaan
Copy link

The Z2M team has decided that all Lidl smart home products which exists of 3 different vendor names get vendor name Lidl. A number of devices are recognized as existing Tuya models, but are now available under their own model name (not TS0505A):

Koenkk/zigbee-herdsman-converters@13be3d2

They are available in the Z2M dev branch.
So maybe first re-configure this device in Z2M with the correct model and vendor name and then post it here?

@bbrowaros
Copy link
Author

@Anjerlaan thanks for tips. Got simply message with information that this device is not known for zigbee2mqtt with link to this page. I'll check the information that you mentioned. I did not know that there is a possibility to reconfigure the device. Can you point me to any docs? Sorry starting with zigbee

@bbrowaros
Copy link
Author

Ok I've got the dev branch running for the devices. The Device is pared now with a different name: "Livarno Lux E14 candle RGB" I can confirm that the device.js has the correct name and vendor name:

    {
        fingerprint: [{modelID: 'TS0505A', manufacturerName: '_TZ3000_odygigth'}],
        model: 'HG06106B',
        vendor: 'Lidl',
        description: 'Livarno Lux E14 candle RGB',
        extend: generic.light_onoff_brightness_colortemp_colorxy,
    },

however Domoticz is not creating devices. Still showing the same message that this plugin is not supporting zigbee device with model name 'HG06106B'.

I'm sure I'm missing something but I don't know what. Can you please confirm that this device is supported by plugin?

@Anjerlaan
Copy link

Anjerlaan commented Dec 3, 2020

Nice, i haven't installed the dev branch yet.
The domoticz-zigbee2mqtt-plugin has no entry for this new device, that's why you need to ask support for this device, just modify this new device request you started, but then with the new info model and vendor name.

The developers will add this device to the devices list of the plug-in

@bbrowaros
Copy link
Author

Updated the correct device informations from the new dev branch.

@TilloNeko
Copy link

TilloNeko commented Dec 4, 2020

Hi, I just updated to zigbee-2-mqtt Dev branch. and added the lidl E14 and E27 they show up in zigbee-2-mqtt with all information. but domoticz dont show them in the device list.

I think that while your at it and adding new devices, pls add all 3 NEW lidl lights (GU10, E14 and E27)
See link for new device request in the zigbee-2-mqtt git:
Koenkk/zigbee2mqtt#5164

{
fingerprint: [{modelID: 'TS0505A', manufacturerName: '_TZ3000_odygigth'}],
model: 'HG06106B',
vendor: 'Silvercrest',
description: 'E14 candle',
vendor: 'Lidl',
description: 'Livarno Lux E14 candle RGB',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
fingerprint: [{modelID: 'TS0505A', manufacturerName: '_TZ3000_kdpxju99'}],
model: 'HG06106A',
vendor: 'Lidl',
description: 'Livarno Lux GU10 spot RGB',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
fingerprint: [{modelID: 'TS0505A', manufacturerName: '_TZ3000_dbou1ap4'}],
model: 'HG06106C',
vendor: 'Lidl',
description: 'Livarno Lux E27 bulb RGB',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},

Thanx for a great job with the plugin :-)

@bbrowaros
Copy link
Author

For those who are looking for solution before this will be officially implemented I've found a way to integrate device described here.
in ./domoticz/plugins/zigbee2mqtt/adapters create a directory 'lidl'. Inside create a file:
HG06106B_E14.py with content:

import Domoticz
from adapters.base_adapter import Adapter
from adapters.generic.mixins.rgb import RGBMixin
from devices.color_colortemp_light import RGBWLight


class LidlHG06106BE14(Adapter, RGBMixin):
    def __init__(self, devices):
        super().__init__(devices)

        self.dimmer = RGBWLight(devices, 'light', 'state_brightness_color')
        self.devices.append(self.dimmer)

    def convert_message(self, message):
        message = super().convert_message(message)

        if 'color_temp' in message.raw:
            message.raw['color_temp'] = int(message.raw['color_temp'] * 255 / 500)

        return message

    def handleCommand(self, alias, device, device_data, command, level, color):
        topic = device_data['friendly_name'] + '/set'
        return self.set_color(topic, command, level, color)

save it. So the file will be located here ./domoticz/plugins/zigbee2mqtt/adapters/lidl/HG06106B_E14.py

Then edit file: ./domoticz/plugins/zigbee2mqtt/adapters/__init__.py after all from add following line:

from adapters.lidl.HG06106B_E14 import LidlHG06106BE14

then in section:

adapter_by_model = dict ({
...
    'ptvo.switch': PtvoSwitch,           # cc2530 zigbee module with pvto.switch firmware (buttons only for now!)
    # Lidl device
    'HG06106B' : LidlHG06106BE14        #New lidl implemented for test
},
.....

Remember to add ',' at the end of last line on PtvoSwitch.
After that make sure that allowing to add new devices is enabled in domoticz and go to HW page. Select zigbee2mqtt device and Update it. The device should be now correctly added to domoticz.

@TilloNeko
Copy link

Can confirm that this work for lidl GU10, E14 and E27 👍 :-)

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

No branches or pull requests

4 participants