OSRAM Lightify A19 Tunable white bulb shows RGB controls

As the title states, here is what I see:


How do I remove the RGB controls?

Also, The tunable white range is wrong. The “max” mireds setting (lower Kelvin temp) is not available. Its range is 6500K - 2700K (154-370 mireds). The slider position above is the max mireds the bulb will accept.

Zigbee signature:

{
  "node_descriptor": "NodeDescriptor(byte1=1, byte2=64, mac_capability_flags=142, manufacturer_code=48042, maximum_buffer_size=64, maximum_incoming_transfer_size=0, server_mask=0, maximum_outgoing_transfer_size=0, descriptor_capability_field=3)",
  "endpoints": {
    "3": {
      "profile_id": 260,
      "device_type": "0x0102",
      "in_clusters": [
        "0x0000",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x0008",
        "0x0300",
        "0x0b04",
        "0xfc0f"
      ],
      "out_clusters": [
        "0x0019"
      ]
    }
  },
  "manufacturer": "OSRAM",
  "model": "LIGHTIFY A19 Tunable White",
  "class": "zhaquirks.osram.a19twhite.A19TunableWhite"
}

I opened a issue for this a while back: https://github.com/zigpy/zha-device-handlers/issues/135

I looked into it some with one of the zha devs, and it was not a trivial fix and these bulbs were so unreliable for me I got rid of them all so lost interest.

Oh my, that was over a year ago!
I got a little bit further than you did with my issue posted here: https://github.com/home-assistant/core/issues/39857#issuecomment-689719990

With assistance from Alexei Chetroi (@Adminiuga) at https://github.com/home-assistant/core/issues/39857 this is now fixed!

docker stop homeassistant
find /var/lib/docker -name a19twhite.py

and edit the file so it looks like the following:

"""Osram A19 tunable white device."""
from zigpy.profiles import zha
from zigpy.quirks import CustomDevice, CustomCluster
from zigpy.zcl.clusters.general import (
    Basic,
    Groups,
    Identify,
    LevelControl,
    OnOff,
    Ota,
    Scenes,
)
from zigpy.zcl.clusters.homeautomation import ElectricalMeasurement
from zigpy.zcl.clusters.lighting import Color

from . import OsramLightCluster
from ..const import DEVICE_TYPE, ENDPOINTS, INPUT_CLUSTERS, OUTPUT_CLUSTERS, PROFILE_ID

class OsramColorCluster(CustomCluster, Color):
    _CONSTANT_ATTRIBUTES = {
         0x400a: 16,
         0x400C: 370,
    }

class A19TunableWhite(CustomDevice):
    """Osram A19 tunable white device."""

    signature = {
        # <SimpleDescriptor endpoint=3 profile=260 device_type=258
        # device_version=2 input_clusters=[0, 3, 4, 5, 6, 8, 768, 64527]
        # output_clusters=[25]>
        ENDPOINTS: {
            3: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.COLOR_DIMMABLE_LIGHT,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Identify.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    OnOff.cluster_id,
                    LevelControl.cluster_id,
                    Color.cluster_id,
                    ElectricalMeasurement.cluster_id,
                    OsramLightCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Ota.cluster_id],
            }
        }
    }

    replacement = {
        ENDPOINTS: {
            3: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.COLOR_DIMMABLE_LIGHT,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Identify.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    OnOff.cluster_id,
                    LevelControl.cluster_id,
                    OsramColorCluster,
                    ElectricalMeasurement.cluster_id,
                    OsramLightCluster,
                ],
                OUTPUT_CLUSTERS: [Ota.cluster_id],
            }
        }
    }

Changes:

from zigpy.quirks import CustomDevice

to

from zigpy.quirks import CustomDevice, CustomCluster

Add:

class OsramColorCluster(CustomCluster, Color):
    _CONSTANT_ATTRIBUTES = {
         0x400a: 16,
         0x400C: 370,
    }

In Replacement section,
change:

Color.cluster_id,

to:

OsramColorCluster,

And then docker start homeassistant.

OSRAM Lightify A19 Tunable White - fixed

1 Like

maybe do a PR to the zha_device_handler’s repo for the update?

Done.
https://github.com/zigpy/zha-device-handlers/pull/488

Pull request Update a19twhite.py #488 has been approved and will be merged!

1 Like