I have an automation when my doorbell rings, it sends an MQTT message and triggers a notification on my phone. This bit works fine, I get the notification, so I know that works.
I wanted to add so that it would also play the Doorbell tone on my Aqara gateway, but no matter what I do it doesn’t work. I can turn the gateway light on & off using Home Assistant so it’s definitely connected. Software version of gateway is latest.
Is there anything known to be dodgy with this at the moment?
you have an indentation issue on the ‘message’ line, and also on the gw_mac and ringtone lines. add an extra space to each of them. EDIT: just noticed an extra space is required under the trigger before platform, topic and payload.
Thanks, I think the indentation in my OP got corrupted when I pasted. The first part of the automation works fine and I don’t get any errors in Yamllint, or if I do the Check Configuration tool in Hassio
Have you checked the Firmware Version of your Xiaomi Gateway? It needs to be at least 1.4.1_145
Also, you could try to call the service via developer tools to see if the ringtone plays fine.
I had been retrieving the GW MAC from the ‘hidden’ menu in the app. I checked on my router and the MAC it reads for the gateway is completely different. I was probably reading the wrong value in the app, it’s a mess.
I changed the automation to use the MAC from my router and it works perfectly.