ICTCG1 (IKEA) initialize_error, first setup, need some advise on troubleshooting

Good evening,

Last week I added CC2531 Zigbee to my HA, hoping to play around with ICTCG1 (IKEA) dimmer.
What I could:

  1. pair it with Zigbee Coordinator as a result I got a new device:
#### Zigbee info
IEEE: 00:0b:57:ff:fe:xx:xx:xx
Nwk: 0xaxxx
Device Type: EndDevice
LQI: Unknown
RSSI: Unknown
Last Seen: 2021-03-05T23:33:43
Power Source: Battery or Unknown

I gave it a name TRD00 and the device provides one Entity: TRD00 power
2. Added plugin: AppDaemon 4
3. Added Controllerx
3.1 Hello Apps works fine
3.2 configured a new one for ICTCG1 as follow:

#hello_world:
#  module: hello
#  class: HelloWorld
trd_app00:
    module: controllerx
    class: ICTCG1Controller
    controller: TRD00
    integration: zha
    switch: TRDS00

As a result I’m getting via homeassistant.local:5050 following log message from active apps:
trd_app00 initialize_error

Can someone help me to troubleshoot this issue. I’m pretty new to HA (RPI4 & Hass.io) and somehow still lost in the configuration diversity, integrations opportunity. etc.

Many thanks in advance!
Cheers
Peter

Edit: Hi @xaviml may I ask for your assistance? Thank you!

Hi @PetervF,

Sorry for the delay in replying your message. I see that controller parameter is not the value that should be placed. You can read here how to extract the controller parameter. In your case, since it is ZHA, you need to place the IEEE of your device, so 00:0b:57:ff:fe:xx:xx:xx (with the proper number).

If you are still having problem, could you please share the full logs from the AppDaemon 4 addon (under the LOG tab)? This way I will be able to see a more detailed error.

I hope this solves your problem :slight_smile:

Regards,
Xavi M.

Hi @xaviml ,

I do appreciate your response!
The problem I’m facing is that I do not get any zha_event (s)
I saw similar issues (including your involvement there)

but I’m not able to solve it. My remote ICTCG1 was not bounded to anything, now I bounded it to the Zigbee Coordinator. It did change anything.

When I remove and add the battery in this dimmer there is a log event:

2021-03-13 22:21:49 INFO (MainThread) [zigpy_znp.zigbee.application] ZDO device announce: ZDO.EndDeviceAnnceInd.Callback(Src=0xb22c, NWK=0xb22c, IEEE=00:0b:57:ff:fe:99:99:99, Capabilities=<MACCapabilities.AllocateShortAddrDuringAssocNeeded: 128>)
2021-03-13 22:21:49 INFO (MainThread) [zigpy.application] Device 0xb22c (00:0b:57:ff:fe:99:99:99) joined the network
2021-03-13 22:21:49 DEBUG (MainThread) [zigpy.application] Skip initialization for existing device 00:0b:57:ff:fe:99:99:99
2021-03-13 22:21:49 DEBUG (MainThread) [zigpy.zdo] [0xb22c:zdo] ZDO request ZDOCmd.Device_annce: [0xb22c, 00:0b:57:ff:fe:99:99:99, 128]
...
...
2021-03-13 22:24:49 INFO (MainThread) [zigpy_znp.zigbee.application] ZDO device relays: ZDO.SrcRtgInd.Callback(DstAddr=0xbc30, Relays=[])
2021-03-13 22:24:49 DEBUG (MainThread) [zigpy.zcl] [0xbc30:11:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=124 command_id=Command.Report_Attributes>
...
...
2021-03-13 22:25:02 INFO (MainThread) [zigpy_znp.zigbee.application] ZDO device announce: ZDO.EndDeviceAnnceInd.Callback(Src=0xb22c, NWK=0xb22c, IEEE=00:0b:57:ff:fe:99:99:99, Capabilities=<MACCapabilities.AllocateShortAddrDuringAssocNeeded: 128>)
2021-03-13 22:25:02 INFO (MainThread) [zigpy.application] Device 0xb22c (00:0b:57:ff:fe:99:99:99) joined the network
2021-03-13 22:25:02 DEBUG (MainThread) [zigpy.application] Skip initialization for existing device 00:0b:57:ff:fe:99:99:99
2021-03-13 22:25:02 DEBUG (MainThread) [zigpy.zdo] [0xb22c:zdo] ZDO request ZDOCmd.Device_annce: [0xb22c, 00:0b:57:ff:fe:99:99:99, 128]

By the way I have also a power socket integrated over Zigbee. It works fine, but alo does not generate any zha_event events.
Below some related logs entries:

2021-03-13 22:37:17 INFO (MainThread) [zigpy_znp.zigbee.application] ZDO device relays: ZDO.SrcRtgInd.Callback(DstAddr=0xbc30, Relays=[])
2021-03-13 22:37:17 DEBUG (MainThread) [zigpy.zcl] [0xbc30:11:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=2 command_id=Command.Report_Attributes>
2021-03-13 22:37:17 DEBUG (MainThread) [zigpy.zcl] [0xbc30:11:0x0006] ZCL request 0x000a: [[Attribute(attrid=0, value=<TypeValue type=Bool, value=Bool.false>)]]
2021-03-13 22:37:17 DEBUG (MainThread) [zigpy.zcl] [0xbc30:11:0x0006] Attribute report received: on_off=0
2021-03-13 22:37:17 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=switch.tz3000_kdi2o9m6_ts011f_on_off, old_state=<state switch.tz3000_kdi2o9m6_ts011f_on_off=on; friendly_name=socket-01 on_off @ 2021-03-13T22:27:11.863044+01:00>, new_state=<state switch.tz3000_kdi2o9m6_ts011f_on_off=off; friendly_name=socket-01 on_off @ 2021-03-13T22:37:17.089625+01:00>>
2021-03-13 22:37:20 DEBUG (MainThread) [zigpy.zcl] [0xbc30:11:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=3 command_id=Command.Report_Attributes>
2021-03-13 22:37:20 DEBUG (MainThread) [zigpy.zcl] [0xbc30:11:0x0006] ZCL request 0x000a: [[Attribute(attrid=0, value=<TypeValue type=Bool, value=Bool.true>)]]
2021-03-13 22:37:20 DEBUG (MainThread) [zigpy.zcl] [0xbc30:11:0x0006] Attribute report received: on_off=1
2021-03-13 22:37:20 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=switch.tz3000_kdi2o9m6_ts011f_on_off, old_state=<state switch.tz3000_kdi2o9m6_ts011f_on_off=off; friendly_name=socket-01 on_off @ 2021-03-13T22:37:17.089625+01:00>, new_state=<state switch.tz3000_kdi2o9m6_ts011f_on_off=on; friendly_name=socket-01 on_off @ 2021-03-13T22:37:20.917201+01:00>>

Do you have any idea what I can provide you more to support troubleshooting or do on my own?
Best Regards and once again thanks for your assistance and any guidance.
Peter

Hi Peter,

This is indeed a bug, however, I will not be able to help with this since I do not have experience with it. As you pointed out, it seems to be a problem with the controller itself.

I would recommend you to open a ticket in the zigpy project, I am sure they will be able to help you better with this problem you are having.

Sorry I was not much of a help with your issue, but I do not have much experience with ZHA.

Regards,
Xavi M.

Hi @xaviml,

No problem at all, many thanks for your suggestion and your contribution to Controllerx - great work any way!

best
Peter

Edit/Update:
I could integrate the dimmer via Zigbee2MQTT
After pairing, it exposed: Action, Battery, Brightness, Level, Linkquality, Rate, Update.
I can even see changes of the action on lovelace.

1 Like

Hi Peter, once you see the actions in Locelace, you should have no problems to use it with ControllerX. If there is anything you need for ControllerX, just let me know :slight_smile:

Sure, I’ve been already testing this further :slight_smile:

Thanks!
P.

1 Like