Connect to Azure IoT with MQTT?

Hello I am a newbie (1 week) to HAss.

Setup Background:

I have HAss installed on a raspberry Pi 3b (using the hass.io image)
Aeotec Z-stick is controlling;
Aeotec Motion sensor 6
Aeotec Door sensor 6 (x2)
Aeotec Smart Switch 6

Everything is running nicely. I have even managed to create a few basic automations:

  • Motion detected - turn switch on
  • Door opened - send Pushbutton notification
  • Motion detected at night - send Twilio voice call

So far I am really happy with HAss as a solution, it’s going great.

I now want to push some of the sensor data (motion detection) out to Microsoft Azure so that I can experiment with their analytics. It looks like the best way to do this is via MQTT? (I have the MQTT broker installed and running but I am not sure of the next steps).

Can anyone point me to an example of how this could be done?

Thanks,

Hi, did you made any progress? I’m trying to do exactly the same. Like to hear from you!

Hello - no I never did find a way to do this with Azure.

We got it working with AWS IoT though (with help from the community).

The data is stored in DynamoDB/AWS Analytics and so far it does everything we need. Let me know if you want more info on this.

R7

Thanks for your fast reply.

To bad this doesn’t work (yet) with Azure. I really like to use there platform.

I’m interesting in doing this also. There’s some info here: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support

If I have any luck I will let you know. It’ll be a few months before I get to this step, however.

Thanks for the link. I will post an update if I make some progress

Folks, Azure MQTT doesn’t act like a normal broker in that publishes from Client A can not be subscribed to by Client B.

So without a bunch of coding on the back end of Azure it is basically black hole.

Many folks have burned many hours making the mistake of thinking Azure MQTT is a real MQTT Broker.

I’d love to hear how you did this. I’d like to move my DB off my Pi and have it stored in the cloud, but not too sure how to achieve this. Any advice much appreciated! Mat

Here’s a link to my post explaining how we did it with AWS: https://community.home-assistant.io/t/aws-iot-integration/54888/2?u=red7

A bunch of people have done this now so with luck you should be able to get support from a few other places. Let me know if you need any more information though.

Good Luck,

Red

can I please request access to the link? say I do not have permission to access the topic

Thanks!

I Red, could I please have acces to the link? https://community.home-assistant.io/t/aws-iot-integration/54888/2?u=red7

I also need access to that link, could you please give the permission. Regards.

New link : https://community.home-assistant.io/t/aws-iot-integration/54888/2

Hopefully it will work now.

Red7, thank you for the fast response. The new link you send me still not working. Do you have any other option to view the topic. Regards

i would like access as well if possible. thanks.