Zigbee2MQTT shortcuts

One of the main reasons I came up with the EasyMQTT app was to control my lights and other MQTT devices over Zigbee2MQTT. It’s an amazing open source project that let’s you replace all your Hue, Tradfri, Aqara and other Zigbee hubs and have all your devices on the same network.

The main way to interact with your Zigbee2MQTT hub is over MQTT and I always felt like it was a bit cumbersome to manually publish messages to for example enable pairing or rename entities. This is one place where EasyMQTT can make your life quite a bit easier. Here are some things I’m currently using:

Enable pairing

To enable or disable pairing, you have to send either true or false to zigbee2mqtt/bridge/config/permit_join.

One way to speed that up is adding these messages to your publish favourites in the app (or add them as a Siri Shortcut):

Adding Zigbee2MQTT messages to your favorites

Adding Zigbee2MQTT messages to your favorites

Zigbee2MQTT rename devices

Another command I use quite frequently is renaming devices, usually after pairing a new device or when moving devices from room to room. This one is a bit trickier, you have to send a message to zigbee2mqtt/bridge/config/rename with the payload {“old”: “oldName”, “new”: “newName”}.

What I usually do when pairing is subscribing to zigbee2mqtt/# and watch the incoming messages. Once I see the pairing successful message I copy the device ID from there and then use the following Siri shortcut:

https://www.icloud.com/shortcuts/755546fdb9284fde8d0084654cfb4b8b

Here’s what it looks like:

IMG_0713.jpg

It automatically takes the copied value as the old name and lets you type in the new name. A quick and easy way to rename devices!

Add devices to groups

This shortcut let’s you add devices to groups by copying the device name and manually entering the group name

https://www.icloud.com/shortcuts/c81311809ce149a58930577078a18e90

These are just a few examples as to how EasyMQTT can be used to make working with your Zigbee2MQTT bridge easier. There are a ton more commands that could be implemented as shortcuts, for a list of all of them see here.

Feel free to share your creations on Discord, I will be posting a few more there.

Get EasyMQTT on the App Store for iOS, iPadOS and macOS

Previous
Previous

1.6.0 - Hello iCloud!

Next
Next

1.4.0 - Widgets!