@Holdestmade I think it’s more fundamental than the automation. I’ve been able to trigger the automation by calling the service, which tells me that the automation will be triggered when the event is recognised by HA. I’ve just updated to 92.2, just in case. I think the next thing for me to try is to remove the add-on and start from a clean slate. I’ve already tried removing the integration and re-initialising that so I think I need to get my setup as clean as possible and re-start from there.
I’ve had a play with the listen activity for events and no activities under deconz_event fire. That concerns me, hence my thought of removing the add-on and re-stalling.
I had the same problem when i searched for xiaomi or ikea switches. Then i changed from deconz to zha and that didnt help. I still only get the battery status
What’s the problem with the switches? They appear with the “battery_level” in the integration but you have to use dconz_events in your automations. So your automation should look like this:
@dnuc no, that aspect is fully understood. The issue is that the deconz_event is not presented under the events tab on the developer menu. I’ve tried removing and re-installing the add-on and that hasn’t helped it re-appear (it has existed in the past, when it was first installed). For the devices the battery level is present which shows that they are recognised. I have not been able to get the deconz_event recognised whilst it is not present in the events tab.
I’ve just got myself a conbee II, so I think I’m going to strip out the add-on and then re-add from first principles, It’ll take a while but worth it if it solves the issue.
I have the same problem here with my IKEA Switch. It’s set up through deConz (on Conbee II) - not ZHA - and it was working perfectly until a couple of days ago. Home assistant was recognizing 2 entities for this device: one as Switch and one as Sensor-battery level).
I set up my automation very easily using Device->Turn On button pressed, and the action would simply turn on my light bulb. All was working perfectly.
All of a sudden, the switch has disappeared as entity from HA, and I can only see the battery sensor. The switch does not appear in any device list. I checked in Developer Tools-> States and it’s not there either. The only thing I see is the battery sensor, nothing else:
I have the same issue with an Xiaomi Switch (firmware 09-27-2017) that only shows as a battery level sensor. When I try to listen to deconz_event nothing is fired in HA. Any clues?
Seems like it’s normal…
I solved this problem by using deconz_event as trigger. See below:
- id: '1576874566498'
alias: Switch ON-OFF
description: ''
trigger:
- platform: event
event_type: deconz_event
event_data:
event: 1002
id: your_switch_name #this is the name used in your Conbee (in the Phoscon web app)
condition: []
action:
- service: light.toggle
entity_id: light.name_of_your_light