Exploring MQTT Automation and Shelly Device Integration

Hello everyone! I’ve been diving into the world of MQTT automation and Shelly devices lately, and I wanted to share some of my experiences and questions with the community.

First, let me talk about MQTT. I’ve been trying to set up a system where one device triggers another, but I’m hitting a snag. I have two Tasmota power plugs that I want to link so that turning one on automatically turns the other on. I tried using an automation with MQTT triggers, but it doesn’t seem to work. Here’s what my setup looks like:

yaml

  • alias: ‘Power Plug Sync’
    trigger:
    • platform: mqtt
      topic: ‘plug1/power’
      payload: ‘on’
      action:
    • service: switch.turn_on
      entity_id: switch.plug2

I’m not sure why this isn’t working. Is there something I’m missing in the configuration? Any tips would be appreciated!

Now, onto Shelly devices. I’ve been using a Shelly Pro 2PM for controlling my lights, and it’s been a great addition to my setup. However, I’ve noticed that sometimes the device loses its Wi-Fi connection. When it reconnects, it seems to trigger unintended actions, like turning lights on or off. Has anyone else experienced this issue? How did you resolve it?

Another thing I’m curious about is integrating Shelly devices with HomeKit. I’ve managed to get my Shelly units working with Home Assistant, but I’d love to use them seamlessly with Apple’s ecosystem. Are there any best practices or workarounds for this integration?

On a lighter note, I’ve been experimenting with creating custom Lovelace cards. It’s been a fun challenge, but I’m still learning the ropes. If anyone has tips or resources for designing effective and visually appealing cards, I’d love to hear them!

Lastly, I wanted to share a success story. I recently set up a system where my outdoor lights automatically adjust their brightness based on motion sensor input. It’s been working flawlessly, and it’s added a nice touch of convenience to my home. I’d be happy to share the details of this setup if anyone is interested!

Thanks for reading, and I look forward to your insights and experiences!