Is there an automatic mqtt wifi switch outthere

Hello good folks of HA,

I was wondering if there a advice out there in a market which upon connecting to wifi sends out a mqtt comand, the idea is to connect to my car and once it gets wifi reception it fires a mqtt topic which in turn activate my garage door switch from Node Red. Any ideas?