AnaviTechnology / anavi-docs

Documents for all ANAVI open source hardware products
http://anavi.technology/
65 stars 35 forks source link

Looking for information about miracle controller mqtt control #29

Closed zachfi closed 4 years ago

zachfi commented 4 years ago

Hello, just received the controller and very excited to integrate it into my system.

I've connected the controller to a mosquitto server running in my basement, and watching all the messages being sent with mosquitto_sub. I'm wondering how to manage the /config endpoint. Is this a protocol invented by Anavi, or a community standard? Either way, would you mind pointing me at some reading material so I can build something to parse those messages correctly and know how to use them. In this case, I suppose I'd want to change things about the lights and such, but I'm not using home assistant or other platform.

leon-anavi commented 4 years ago

Hi @xaque208,

The open source firmware of ANAVI Miracle Controller follows the Home Assistant community standards with JSON payload of the following MQTT entities:

All these specifications for JSON serialized data in the payload defined by Home Assistant have been already partially or fully adopted by other open source IoT platforms like OpenHAB and ioBroker.

It is also possible to use them directly for your custom application, for example this simple HTML5 web page for demo purposes uses the Paho MQTT JavaScript client library has support for ANAVI Miracle Controller. The live demo is available here and you see how it works from user's perspective in this video.

Best regards, Leon

zachfi commented 4 years ago

Excellent, thank you for the pointers. That's just what I was after. Cheers.