Deconz Gateway and Switches

Hi all,

I have a Deconz Zigbee gateway with several devices attached to it. So far most sensors/devices are properly recognized. However I have two which are setup but do not show up in HA.

One is an Aqara/Xiaomi wall switch, the other one is a Friends of Hue (Senic) wall switch. Both are very crucial for me to have my home running :slight_smile:

Any idea how I could add them to HA?

Johannes

Pleas try and use the service deconz.device_refresh to make sure all the devices get pushed to Home Assistant

1 Like

I did try it. Both switches show up under Devices, but not properly under Entities. The Aqara shows up under Entities, but just with the battery status, the FoH not at all.

No experience with the FoH devices, are they already supported by Deconz?

Yes, they properly show up in Deconz and for example in ioBroker I can use them.

This is correct, use events deconz_event to catch the switch presses.

One of my automations using an aqara wireless switch:

- alias: Toggle office ceiling light from switch
  trigger:
    - platform: event
      event_type: deconz_event
      event_data:
        id: office_light_switch
        event: 1002
  action:
    service: light.toggle
    entity_id: light.office_ceiling_light

Ok, this looks promising :grinning: The reason why the FoH is not showing up under entities at all, could be that it does not have a battery. :grinning:

One more question: can I somehow peek into the raw data of the deconz.events? Not sure what the exact states to catch are when the switch is fired. A bit like record, what happens when I push the switch.

Yes, go to Developer Tools>Events and listen to deconz_event

1 Like

Amazing :grinning::grinning: And also the FoH shows up with proper events :grinning: