Zigbee2mqtt: getting rid of your proprietary Zigbee bridges (Xiaomi, Hue, TRADFRI)


#774

Ah, they look good but would only work as routers when you have the light switched on?
I’ve just ordered the cc2530 with the external aerial which should in theory double the range…
https://www.aliexpress.com/item/CC2530-Zigbee-UART-Wireless-Core-Board-Development-Board-CC2530F256-Serial-Port-Wireless-Module-24MHz/32767470382.html
I’ll report back on how that one goes.


#775

Well I bought 2 aqara buttons( 1 for each lamp) that will sit on bedside table so that will toggle the light but keep the bulb on if you know what I mean


#776

Ah, makes sense. So the light will always have power.


#777

Thanks for the reply. I only have 3 sensors connected at the moment, so I’ll try flashing the latest coordinator firmware.


#778

Just to confirm, tradfri remotes that usually pair with their bulbs won’t work with this will they?

With the bulbs being so cheap I’d like to integrate them in to my system, and as I need a way to control ZigBee devices via HA I’m getting a sniffer anyway, but I’d like my lights to not be dependant on my HA server being on… You know, for those rare times when an update screws something up or if the storage on my server corrupts.

Unless it’s possible to pair the bulbs to both the switch/remote and my HA server…


#779

I have a few xiaomi temperature and humidity sensors and some xioami motion sensors that were working just fine and then they have just stopped sending updates. I have added some sylvania smart+ plugs to use as routers to extend the range. How do I know whether my xioami devices are connected to the router or to the coordinator? Also, are there any known issues with the xioami sensors working for a while and then stopping? Thanks for the help.


#780

You indeed can’t pair the remote and the stick to the bulbs…


#781

Cheers for letting me know.
I’ve ordered some Xiaomi switches that I’ll use instead of the tradfri remotes. Guess the only option is to have it running through HA


#782

The round remotes with buttons are not supported (yet): https://github.com/Koenkk/zigbee2mqtt/wiki/Unsupported-devices

I have my bulbs paired with zigbee2mqtt and the remote is still in the drawer.


#783

Can someone tell me what the best router is to use with the xiaomi devices? I am not so sure that the sylvania smart+ plugs I am using as routers are working correctly with my xiaomi devices. I am using the 72922-A model of the sylvania smart+ plug and some of the reading I have done says that the 72922-A model doesn’t work with the xiaomi devices but the 72922 model would, but I can’t seem to find the 72922 model. Everything I see has the -A when I receive it. Thanks for your help.


#784

Hi!

Maybe a noob question but I need some help. How do I control the transition time for my hue white bulb. When I send a manual publish with transition time for 2 it works. My light fades slowly to the next brightness setting. But how do I implement this in the frontend of home assistant. So when i push the switch in the control center is also fades slowly and not hard.

Many thanks!


#785

create an automation


#786

hi to all. I apologize but I’m a beginner. I wanted to know this file (zigbee2mqtt.yaml) in which location should be placed.


#787

I too would like to know this. I tried a few of my hue globes, but they didn’t play very nice with zigbee2mqtt. They were very random. Added them back to my hue hub and they are working perfectly again.

I have a few sensors that seem to be on the edge of the zigbee2mqtt network, so a router device would be great to expand the coverage.


#788

I have these two arriving today which I’ll be testing. I don’t see the “-A” on the end:

Sylvania 72922 on Amazon

Iris Smart Plug on Amazon

Found the GE Ez Smart Dimmer 45852GE on Ebay for $25. Receiving it Saturday. I hope among these three I’ll find a good candidate for extending the range of the network.


#789

Can anyone please help me troubleshoot the Xiaomi Vibration Sensor. I’m using Zigbee2mqtt successfully with Xiaomi Door Sensors, Water Sensor, Temperature Sensor, and Motion Sensor. However with the vibration sensors, I cannot successful monitor a state which would allow me to trigger an automation.

I have paired 2 of the Xiaomi Vibration Sensors. On the HA states screen, each sensor shows up as sensor.0x00XXXXXXXXXXXXXX wth the following attributes:

angle_y: 26
angle_y_absolute: 64
battery: 100.00
angle_x_absolute: 61
unknown_data: 3932160
voltage: 3045
angle_z: 49
angle_x: 29
friendly_name: 0x00158d0002a52581
icon: mdi:gesture-double-tap

No binary sensors show up. I was expecting a binary_sensor.vibration_xxxx000000 as described HERE:

I had assumed I shouldn’t setup the Aqara compoment since I’m not using (and don’t have) the Xiaomi Aqara hub.

I want to use these to alert on when the Washer and Dryer ends their cycle. As it is, placing the sensors on the machines do not create an event in the zigbee2mqtt log when the machine is started or stopped. I can tap on the sensors rhythmically and it still doesn’t register an event. Ever so often in the zigbee2mqtt log while I’m handling the sensors and pushing the little button, I will see an “action:vibration” but it is infrequent and it never changes unless another action occurs such as action:tilt.

Below is a partial log of me attempting to pair and then test the sensors on a running clothes dryer and/or me tapping on them. The ids of the 2 vibration sensors are: 0x00158d0002a52581 and 0x00158d0002a23e28. Any and all help or comments are appreciated.

Log
  zigbee2mqtt:info 2018-10-28 10:57:36 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":18,"angle_y":5,"angle_z":71,"angle_x_absolute":72,"angle_y_absolute":85,"linkquality":21,"unknown_data":2162688,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 10:57:39 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":18,"angle_y":5,"angle_z":71,"angle_x_absolute":72,"angle_y_absolute":85,"linkquality":15,"unknown_data":2162688,"battery":"100.00","voltage":3045,"action":"tilt","angle":5}'
  zigbee2mqtt:info 2018-10-28 10:57:40 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":20,"angle_y":1,"angle_z":70,"angle_x_absolute":70,"angle_y_absolute":89,"linkquality":18,"unknown_data":2162688,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 10:57:46 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":20,"angle_y":1,"angle_z":70,"angle_x_absolute":70,"angle_y_absolute":89,"linkquality":23,"unknown_data":2162688,"battery":"100.00","voltage":3045,"action":"tilt","angle":5}'
  zigbee2mqtt:info 2018-10-28 10:58:30 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":20,"angle_y":1,"angle_z":70,"angle_x_absolute":70,"angle_y_absolute":89,"linkquality":21,"unknown_data":2162688,"battery":"100.00","voltage":3045,"action":"tilt","angle":9}'
  zigbee2mqtt:info 2018-10-28 10:58:35 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":11.82,"humidity":74.46,"pressure":977,"linkquality":70,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 10:58:35 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":11.82,"humidity":74.23,"pressure":977,"linkquality":70,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 10:58:35 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":11.82,"humidity":74.23,"pressure":977,"linkquality":70,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 10:58:49 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":20,"angle_y":1,"angle_z":70,"angle_x_absolute":70,"angle_y_absolute":89,"linkquality":23,"unknown_data":2162688,"battery":"100.00","voltage":3045,"action":"vibration"}'
  zigbee2mqtt:info 2018-10-28 10:58:50 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":20,"angle_y":1,"angle_z":70,"angle_x_absolute":70,"angle_y_absolute":89,"linkquality":15,"unknown_data":2162688,"battery":"100.00","voltage":3045,"action":"tilt","angle":24}'
  zigbee2mqtt:info 2018-10-28 10:58:54 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":-4,"angle_y":3,"angle_z":85,"angle_x_absolute":94,"angle_y_absolute":87,"linkquality":10,"unknown_data":2162688,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 10:59:48 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":1,"angle_y":-1,"angle_z":88,"angle_x_absolute":89,"angle_y_absolute":91,"linkquality":26,"unknown_data":2162688,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 11:00:50 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":1,"angle_y":-1,"angle_z":88,"angle_x_absolute":89,"angle_y_absolute":91,"linkquality":15,"unknown_data":2162688,"battery":"100.00","voltage":3045,"action":"tilt","angle":6}'
  zigbee2mqtt:info 2018-10-28 11:00:50 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":-2,"angle_y":1,"angle_z":88,"angle_x_absolute":92,"angle_y_absolute":89,"linkquality":15,"unknown_data":2162688,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 11:01:04 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":2,"angle_y":-2,"angle_z":87,"angle_x_absolute":88,"angle_y_absolute":92,"linkquality":36,"unknown_data":2162688,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 11:03:41 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":2,"angle_y":-2,"angle_z":87,"angle_x_absolute":88,"angle_y_absolute":92,"linkquality":0,"unknown_data":8650752,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 11:03:58 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":2,"angle_y":-2,"angle_z":87,"angle_x_absolute":88,"angle_y_absolute":92,"linkquality":57,"unknown_data":8650752,"battery":"100.00","voltage":3045,"action":"tilt","angle":56}'
  zigbee2mqtt:info 2018-10-28 11:04:41 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":2,"angle_y":-2,"angle_z":87,"angle_x_absolute":88,"angle_y_absolute":92,"linkquality":28,"unknown_data":8847360,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 11:05:41 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":2,"angle_y":-2,"angle_z":87,"angle_x_absolute":88,"angle_y_absolute":92,"linkquality":34,"unknown_data":7995392,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 11:06:08 MQTT publish, topic: 'zigbee2mqtt/0x00158d00023eb10f', payload: '{"contact":false,"linkquality":7,"battery":"100.00","voltage":3035}'
  zigbee2mqtt:info 2018-10-28 11:06:40 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":2,"angle_y":-2,"angle_z":87,"angle_x_absolute":88,"angle_y_absolute":92,"linkquality":31,"unknown_data":7995392,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 11:06:40 MQTT publish, topic: 'zigbee2mqtt/0x00158d00023eb10f', payload: '{"contact":true,"linkquality":15,"battery":"100.00","voltage":3035}'
  zigbee2mqtt:info 2018-10-28 11:06:54 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":2,"angle_y":-2,"angle_z":87,"angle_x_absolute":88,"angle_y_absolute":92,"linkquality":26,"unknown_data":7995392,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 11:07:14 MQTT publish, topic: 'zigbee2mqtt/0x00158d00023eb10f', payload: '{"contact":false,"linkquality":0,"battery":"100.00","voltage":3035}'
  zigbee2mqtt:info 2018-10-28 11:07:14 MQTT publish, topic: 'zigbee2mqtt/0x00158d00023eb10f', payload: '{"contact":false,"linkquality":15,"battery":"100.00","voltage":3035}'
  zigbee2mqtt:info 2018-10-28 11:07:25 MQTT publish, topic: 'zigbee2mqtt/0x00158d00023eb10f', payload: '{"contact":true,"linkquality":5,"battery":"100.00","voltage":3035}'
  zigbee2mqtt:info 2018-10-28 11:07:41 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":2,"angle_y":-2,"angle_z":87,"angle_x_absolute":88,"angle_y_absolute":92,"linkquality":52,"unknown_data":7995392,"battery":"100.00","voltage":3045,"action":"vibration"}'
  zigbee2mqtt:info 2018-10-28 11:07:52 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":2,"angle_y":-2,"angle_z":87,"angle_x_absolute":88,"angle_y_absolute":92,"linkquality":84,"unknown_data":7995392,"battery":"100.00","voltage":3045,"action":"tilt","angle":25}'
  zigbee2mqtt:info 2018-10-28 11:08:03 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":1,"angle_y":2,"angle_z":88,"angle_x_absolute":89,"angle_y_absolute":88,"linkquality":81,"unknown_data":7995392,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 11:10:09 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":12.21,"humidity":74.23,"pressure":977,"linkquality":57,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 11:10:09 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":12.21,"humidity":70.83,"pressure":977,"linkquality":57,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 11:10:09 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":12.21,"humidity":70.83,"pressure":977,"linkquality":57,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 11:11:01 Zigbee: allowing new devices to join.
  zigbee2mqtt:info 2018-10-28 11:14:13 Zigbee: disabling joining new devices.
  zigbee2mqtt:info 2018-10-28 11:14:16 Zigbee: allowing new devices to join.
  zigbee2mqtt:info 2018-10-28 11:15:47 New device with address 0x00158d0002a23e28 connected!
  zigbee2mqtt:info 2018-10-28 11:15:47 MQTT publish, topic: 'zigbee2mqtt/bridge/log', payload: '{"type":"device_connected","message":"0x00158d0002a23e28"}'
  zigbee2mqtt:info 2018-10-28 11:15:50 MQTT publish, topic: 'homeassistant/sensor/0x00158d0002a23e28/action/config', payload: '{"icon":"mdi:gesture-double-tap","value_template":"{{ value_json.action }}","json_attributes":["battery","voltage","angle","side","from_side","to_side","brightness","angle_x_absolute","angle_y_absolute","angle_z","angle_y","angle_x","unknown_data"],"force_update":true,"state_topic":"zigbee2mqtt/0x00158d0002a23e28","availability_topic":"zigbee2mqtt/bridge/state","name":"0x00158d0002a23e28","unique_id":"0x00158d0002a23e28_action_zigbee2mqtt"}'
  zigbee2mqtt:info 2018-10-28 11:16:02 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a23e28', payload: '{"action":"vibration","linkquality":120}'
  zigbee2mqtt:info 2018-10-28 11:16:06 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a23e28', payload: '{"action":"tilt","angle":70,"linkquality":105}'
  zigbee2mqtt:info 2018-10-28 11:16:06 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a23e28', payload: '{"angle_x":2,"angle_y":-1,"angle_z":88,"angle_x_absolute":88,"angle_y_absolute":91,"linkquality":105}'
  zigbee2mqtt:info 2018-10-28 11:16:41 Device incoming...
  zigbee2mqtt:info 2018-10-28 11:16:41 MQTT publish, topic: 'zigbee2mqtt/bridge/log', payload: '{"type":"pairing","message":"device incoming"}'
  zigbee2mqtt:info 2018-10-28 11:16:56 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":1,"angle_y":2,"angle_z":88,"angle_x_absolute":89,"angle_y_absolute":88,"linkquality":13,"unknown_data":3932160,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 11:17:34 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a23e28', payload: '{"angle_x":2,"angle_y":-1,"angle_z":88,"angle_x_absolute":88,"angle_y_absolute":91,"linkquality":105,"action":"vibration"}'
  zigbee2mqtt:info 2018-10-28 11:17:37 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a23e28', payload: '{"angle_x":2,"angle_y":-1,"angle_z":88,"angle_x_absolute":88,"angle_y_absolute":91,"linkquality":99,"action":"drop"}'
  zigbee2mqtt:info 2018-10-28 11:17:46 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a23e28', payload: '{"angle_x":2,"angle_y":-1,"angle_z":88,"angle_x_absolute":88,"angle_y_absolute":91,"linkquality":107,"action":"tilt","angle":6}'
  zigbee2mqtt:info 2018-10-28 11:17:54 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a23e28', payload: '{"angle_x":30,"angle_y":2,"angle_z":60,"angle_x_absolute":60,"angle_y_absolute":88,"linkquality":99}'
  zigbee2mqtt:info 2018-10-28 11:18:19 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a23e28', payload: '{"angle_x":30,"angle_y":2,"angle_z":60,"angle_x_absolute":60,"angle_y_absolute":88,"linkquality":52,"action":"tilt","angle":27}'
  zigbee2mqtt:info 2018-10-28 11:18:19 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a23e28', payload: '{"angle_x":3,"angle_y":-1,"angle_z":87,"angle_x_absolute":87,"angle_y_absolute":91,"linkquality":55}'
  zigbee2mqtt:info 2018-10-28 11:18:40 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a23e28', payload: '{"angle_x":3,"angle_y":-1,"angle_z":87,"angle_x_absolute":87,"angle_y_absolute":91,"linkquality":31,"action":"vibration"}'
  zigbee2mqtt:info 2018-10-28 11:20:18 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002369013', payload: '{"water_leak":false,"linkquality":31,"battery":"100.00","voltage":3035}'
  zigbee2mqtt:info 2018-10-28 11:20:18 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002369013', payload: '{"water_leak":false,"linkquality":31,"battery":"100.00","voltage":3035}'
  zigbee2mqtt:info 2018-10-28 11:20:18 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002369013', payload: '{"water_leak":false,"linkquality":31,"battery":"100.00","voltage":3035}'
  zigbee2mqtt:info 2018-10-28 11:20:18 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002369013', payload: '{"water_leak":false,"linkquality":31,"battery":"100.00","voltage":3035}'
  zigbee2mqtt:info 2018-10-28 11:23:43 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":12.65,"humidity":70.83,"pressure":977,"linkquality":60,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 11:23:43 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":12.65,"humidity":69.68,"pressure":977,"linkquality":57,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 11:23:43 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":12.65,"humidity":69.68,"pressure":977,"linkquality":60,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 11:24:11 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":1,"angle_y":2,"angle_z":88,"angle_x_absolute":89,"angle_y_absolute":88,"linkquality":21,"unknown_data":3932160,"battery":"100.00","voltage":3045,"action":"vibration"}'
  zigbee2mqtt:info 2018-10-28 11:24:11 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a23e28', payload: '{"angle_x":3,"angle_y":-1,"angle_z":87,"angle_x_absolute":87,"angle_y_absolute":91,"linkquality":39,"action":"vibration"}'
  zigbee2mqtt:info 2018-10-28 11:24:17 Zigbee: disabling joining new devices.
  zigbee2mqtt:info 2018-10-28 11:24:17 Zigbee: disabling joining new devices.
  zigbee2mqtt:info 2018-10-28 11:24:18 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a23e28', payload: '{"angle_x":3,"angle_y":-1,"angle_z":87,"angle_x_absolute":87,"angle_y_absolute":91,"linkquality":63,"action":"tilt","angle":11}'
  zigbee2mqtt:info 2018-10-28 11:24:20 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a23e28', payload: '{"angle_x":3,"angle_y":-1,"angle_z":87,"angle_x_absolute":87,"angle_y_absolute":91,"linkquality":70}'
  zigbee2mqtt:info 2018-10-28 11:25:05 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":1,"angle_y":2,"angle_z":88,"angle_x_absolute":89,"angle_y_absolute":88,"linkquality":81,"unknown_data":3932160,"battery":"100.00","voltage":3045,"action":"tilt","angle":40}'
  zigbee2mqtt:info 2018-10-28 11:25:06 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":4,"angle_y":-44,"angle_z":46,"angle_x_absolute":86,"angle_y_absolute":134,"linkquality":78,"unknown_data":3932160,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 11:25:10 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":4,"angle_y":-44,"angle_z":46,"angle_x_absolute":86,"angle_y_absolute":134,"linkquality":78,"unknown_data":3932160,"battery":"100.00","voltage":3045,"action":"vibration"}'
  zigbee2mqtt:info 2018-10-28 11:25:19 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":4,"angle_y":-44,"angle_z":46,"angle_x_absolute":86,"angle_y_absolute":134,"linkquality":102,"unknown_data":3932160,"battery":"100.00","voltage":3045,"action":"tilt","angle":45}'
  zigbee2mqtt:info 2018-10-28 11:25:21 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a23e28', payload: '{"angle_x":3,"angle_y":-1,"angle_z":87,"angle_x_absolute":87,"angle_y_absolute":91,"linkquality":97,"unknown_data":6946816}'
  zigbee2mqtt:info 2018-10-28 11:25:24 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":12.65,"humidity":69.68,"pressure":977,"linkquality":65,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 11:25:24 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":12.68,"humidity":69.67,"pressure":976.98,"linkquality":65,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 11:25:25 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":24,"angle_y":16,"angle_z":61,"angle_x_absolute":66,"angle_y_absolute":74,"linkquality":105,"unknown_data":3932160,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 11:25:30 Zigbee: allowing new devices to join.
  zigbee2mqtt:info 2018-10-28 11:25:37 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":24,"angle_y":16,"angle_z":61,"angle_x_absolute":66,"angle_y_absolute":74,"linkquality":115,"unknown_data":3932160,"battery":"100.00","voltage":3045,"action":"tilt","angle":13}'
  zigbee2mqtt:info 2018-10-28 11:25:37 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":29,"angle_y":26,"angle_z":49,"angle_x_absolute":61,"angle_y_absolute":64,"linkquality":115,"unknown_data":3932160,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 11:26:00 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":29,"angle_y":26,"angle_z":49,"angle_x_absolute":61,"angle_y_absolute":64,"linkquality":141,"unknown_data":3932160,"battery":"100.00","voltage":3045,"action":"tilt","angle":51}'
  zigbee2mqtt:info 2018-10-28 11:26:03 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a52581', payload: '{"angle_x":29,"angle_y":26,"angle_z":49,"angle_x_absolute":61,"angle_y_absolute":64,"linkquality":123,"unknown_data":3932160,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:warn 2018-10-28 11:26:09 Message without device!
  zigbee2mqtt:error 2018-10-28 11:26:43 Cannot get the Node Descriptor of the Device: 0x00158d0002a52581 (Error: Timed out after 10000 ms)
  zigbee2mqtt:info 2018-10-28 11:29:42 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a23e28', payload: '{"angle_x":3,"angle_y":-1,"angle_z":87,"angle_x_absolute":87,"angle_y_absolute":91,"linkquality":47,"unknown_data":6946816,"action":"vibration"}'
  zigbee2mqtt:info 2018-10-28 11:29:49 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002a23e28', payload: '{"angle_x":3,"angle_y":-1,"angle_z":87,"angle_x_absolute":87,"angle_y_absolute":91,"linkquality":84,"unknown_data":6946816,"action":"tilt","angle":58}'
  zigbee2mqtt:warn 2018-10-28 11:29:54 Message without device!
  zigbee2mqtt:info 2018-10-28 11:31:01 Device incoming...
  zigbee2mqtt:info 2018-10-28 11:31:01 MQTT publish, topic: 'zigbee2mqtt/bridge/log', payload: '{"type":"pairing","message":"device incoming"}'
  zigbee2mqtt:info 2018-10-28 11:32:05 MQTT publish, topic: 'zigbee2mqtt/0x00158d0002393f65', payload: '{"contact":true,"linkquality":23,"battery":"55.00","voltage":2995}'
  zigbee2mqtt:error 2018-10-28 11:32:14 Cannot get the Node Descriptor of the Device: 0x00158d0002a52581 (Error: Timed out after 10000 ms)
  zigbee2mqtt:info 2018-10-28 11:35:31 Zigbee: disabling joining new devices.
  zigbee2mqtt:info 2018-10-28 11:35:31 Zigbee: disabling joining new devices.
  zigbee2mqtt:info 2018-10-28 11:36:46 MQTT publish, topic: 'zigbee2mqtt/0x00158d000232de0a', payload: '{"battery":"100.00","voltage":3095,"linkquality":68,"contact":true}'
  zigbee2mqtt:info 2018-10-28 11:36:47 MQTT publish, topic: 'zigbee2mqtt/0x00158d000232de0a', payload: '{"battery":"100.00","voltage":3095,"linkquality":68,"contact":true}'
  zigbee2mqtt:info 2018-10-28 11:37:28 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":13.16,"humidity":69.67,"pressure":976.98,"linkquality":73,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 11:37:28 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":13.16,"humidity":69.09,"pressure":976.98,"linkquality":76,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 11:37:28 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":13.16,"humidity":69.09,"pressure":976,"linkquality":73,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 11:41:42 MQTT publish, topic: 'zigbee2mqtt/0x00158d00023eb13c', payload: '{"contact":true,"linkquality":68,"battery":"100.00","voltage":3045}'
  zigbee2mqtt:info 2018-10-28 11:42:04 MQTT publish, topic: 'zigbee2mqtt/0x00158d000243672e', payload: '{"contact":true,"linkquality":47,"battery":"99.00","voltage":3005}'
  zigbee2mqtt:info 2018-10-28 11:45:31 MQTT publish, topic: 'zigbee2mqtt/0x00158d000232c071', payload: '{"battery":"42.00","voltage":2985,"linkquality":60,"contact":true}'
  zigbee2mqtt:info 2018-10-28 11:47:41 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":13.44,"humidity":69.09,"pressure":976,"linkquality":63,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 11:47:41 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":13.44,"humidity":65.73,"pressure":976,"linkquality":63,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 11:47:41 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001b7ef17', payload: '{"temperature":13.44,"humidity":65.73,"pressure":977,"linkquality":63,"battery":"31.00","voltage":2965}'
  zigbee2mqtt:info 2018-10-28 11:57:53 MQTT publish, topic: 'zigbee2mqtt/0x00158d00023eb10f', payload: '{"contact":true,"linkquality":13,"battery":"100.00","voltage":3035}'

#790

Did you figure this one out? I’m facing the same issue.
I see that the binary sensor is updating, but I cannot use the mqtt trigger…


#791

You now too :slight_smile: how nice!
Its a “real” binary sensor in Home Assistant. (only on/off - no extra data)
I think its save to use the sensor instead of the topic here.

automation:

  - alias: motion_badkueche_aus
    initial_state: 'on'
    trigger:
      - platform: state
        entity_id: binary_sensor.badkueche
        to: 'off'
        for:
          minutes: 4
    condition:
      - condition: state
        entity_id: input_boolean.boolean_shower_mode
        state: 'off'
    action:
    - service: light.turn_off
      entity_id: light.badkuche

binary_sensor:
  - platform: template
    sensors:
      badkueche:
        friendly_name: "Bad und Küche"
        device_class: motion
        value_template: >-
            {{ is_state('binary_sensor.motion_bad', 'on') or is_state('binary_sensor.motion_kueche', 'on') }}

So in your case entity_id: binary_sensor.0x00158d000165fe40


#792

This is NOT the xiaomi_aqara component from Home Assistant. Things do not work exactly the same.

The vibration sensor is exposed as a single “sensor”. The “action” in the JSON payload indicates what the device has detected: vibration, tilt, or drop. You’ll want to use that as a trigger, either as an MQTT trigger directly, or as a entity based state change trigger.

Mine looks like this:

- alias: Detect Dryer Vibrations
  trigger:
    - platform: state
      entity_id: sensor.vibration_dryer
      to: 'vibration'

#793

This comes sometimes with issues.
Not really intended this way. See https://github.com/Koenkk/zigbee2mqtt/issues/469#issuecomment-431485463