New Binding - connecting to Amazon AWS MQTT?

Hi All,

I’ve started working on a binding to support Emerald Heat Pumps which are quite popular here in Australia. There is a python library that supports these - emerald_hws_py/src/emerald_hws/emeraldhws.py at main · ross-w/emerald_hws_py · GitHub

I’ve been reviewing this code to give me ideas on how to implement support for OpenHAB.

So far, I have a bridge Thing which can authenticate against Emerald’s servers, and retrieve a list of devices. Interestingly, this json also gives me a bunch of data on the heat pump - but is seemingly read-only.

The python code connects to amazon aws iot - see emerald_hws_py/src/emerald_hws/emeraldhws.py at main · ross-w/emerald_hws_py · GitHub and seems to authenticate using cognito and some library boto3.

Has anyone else tried connecting to this using a binding on openhab? Can I use the AWS SDK from an openhab binding?

I’m also still trying to wrap my head around how a bridge & binding talk to each other, and what I need to do to translate my list of detected HWS into a notification, but I’ll work it out :stuck_out_tongue:

TIA,

Paul

This is the way Worx Landroid fonctions also. You can find it in open PRs. Reading the commit history will bring you insights regarding AWS SDK

1 Like

Brilliant! I’ll go looking now! I searched the current code, I didn’t think to check for PRs!

Well on the plus side, I have my Bridge / Thing connection working… I just need to work out how to add new devices to the Inbox…