Xiaomi Aquara switch

Hello i am brand new in the Home Assistant world.

I bought a conbee and a Xiaomi Aquara switch “wxkg11lm” but i cannot get the switch to show up in Phoscon or Home Assistant. When i try using the the Conbee on a Windows machine i can get the switch to show up in Deconz but not in Phoscon or the old wireless control.

When i pair i found the best way is to use the old wireless control and use “open network”

I am running Hassio with Deconz plugin, and i have a Ikea tradfri light running that way without any problems but i cant get the wall switch up and running.

Best regards Jacques

I’m not sure Xiaomi switches are visible in phoscon. For hass remotes are only exposed as events.

Hello.

When i look int the “states” i have sensor showing up.

Example [sensor.lumiremoteb1acn01_2_battery_level] And i says state 78.

Do i need to add the sensor/switch in the yaml to use it in a script? When i trigger the switch it doesn’t show up in the log or change state.

What to do cannot work it out.

Best regards Jacques

Yes, remotes can have their batteristatus exposed as a sensor.

No the remotes normal behavior is a hass event. Check deconz component documentation for examples.

Okay i have 4 different sensor all with “battery level” in their name.

Shouldn’t the switches also show up in states?

No, since they are events, which are not visible as opposed to entities.

Okay but how do i find the correct event? are they listed? Sorry for the noob question :slight_smile:

There should be an attribute in the battery giving the event name. Please read the documentation as well. If things are not clear from there I can also improve them.

:slight_smile: i have been reading and watching youtube like a week just trying to figure out this question. This is like the last step before giving up.

I just talked to guy on FB who send med a screen shot where all the switches he uses are listed as entities, he uses the Xiaomi hub maybe that changes something, i don’t know.

Ok

Well the Xiaomi gateway is a completely different implementation.

Recommendation here: enable debug as it is printed on the deconz component documentation. Press the button on your switch and then check the logs. You should see the event id and everything

Hi,
same problem here, I can see the battery sensor and the switch events in the home assistant log but no switch entity at all.
Have you found a solution in the meanwhile? How I can use this events inside a automation?
Regards Jörg

From the docs; Remote controls (ZHASwitch category) will not be exposed as regular entities, but as events

Just follow the instructions, there is also an example automation.

perfect thx, I had overlook the example! I will try it this evening