No "tilt" acion on xiaomi vibration sensors (after moving into a new PC)

Hello, I’m using Hassio and a lot of zigbee xiaomi devices without gateway (just the CC2531) and everything was fine since I moved everthing into a new PC (installing hassio over lubuntu, lust like before, and restoring from last snapshot).
Everything works fine except the xiaomi vibration sensors, now I dont see the option “tilt” in automations: just “vibration”, “battery” and “linkquality”. Even when i use the old automations they are labeled as “unknown trigger”, and of course, they don’t work.

This is the automation code

- id: '1586542119743'
  alias: vibration and tilt
  description: ''
  trigger:
  - device_id: e080238459d14a0f8526cbfbbfe98f64
    discovery_id: 0x00158d0002c4e63c action_vibration
    domain: mqtt
    platform: device
    subtype: vibration
    type: action
  - device_id: e080238459d14a0f8526cbfbbfe98f64
    discovery_id: 0x00158d0002c4e63c action_tilt
    domain: mqtt
    platform: device
    subtype: tilt
    type: action

I just checked on my old PC, and its working just fine, same code as before shows this in automations:
vib2vib3

Hi there,

I can’t help, but maybe you can help me?

I’m trying to set up my own automations with zigbee xiaomi devices using the CC2531 via zigbee2mqtt and I can’t figure out how to find a device_id. I can see the discovery_id but don’t know where to find the device_id seen in your config.

Could you tell me where to see it?

Thanks,

Steve

They appear automatically in Configuration–>Entities when you setup mqtt broker and zigbee2mqtt

They are like this:
sensor.0x00158d000xxxxxxxx_illuminance

1 Like