Thank you @lgaetz, I implemented your suggestion by removing the extensions from the custom dial plan and added them with Custom Destinations and Misc Applications. They work great.
Regarding the home automation side of things, I will look into the links you provided. I’m scared to even think about Node-Red and its complexity, but that doesn’t mean I’m not going to try to figure things out and give it a go.
I was able to get some of this to work with my Hubitat with the use of EventGhost set up and configured like this: [PORT] - Send Events to EventGhost
That too works nicely, but eventually I would like to move everything to one platform if I can, so I’ve been looking into Home Assistant and Node-Red for that reason.
Currently I am trying to execute a remote ssh command into the FreePBX system. When I try to run this:
ssh root@IPBXSYSTEM asterisk -rx "channel originate Local/callpaging@PlayDoorbellContext/n extension playsound-custom@PlayDoorbellContext"
I get the following error:
No such command 'channel' (type 'core show help channel' for other possible commands)
I believe it has something to do with the double quotes and ssh trying to evaluate part of the command string instead of the entire string, but I do not have experience of running remote ssh commands.