Jump to content


Photo
- - - - -

CQC supports MQTT


  • Please log in to reply
3 replies to this topic

#1 Dean Roddey

Dean Roddey

    Cocoonut

  • Registered
  • PipPipPipPip
  • 1938 posts
  • Software:CQC

Posted 09 May 2019 - 06:48 PM

We are about to do our 5.4 release of CQC, which now includes support MQTT (as a client.) So there is now an MQTT driver and you can configure CQC to associate driver fields with specific topics, tell it how to interpret payload data, and how to convert to/from the CQC field representations of those values.
 
 
 
The current official version is 5.3.2 which DOES NOT include the MQTT support. This is just a heads up that it's coming in the next version, which is ready to go. Basically we were just holding it up to give the MQTT stuff more user testing time. If you really want to play around with it in the meantime, the beta releases thread is here. It's essentially what 5.4 will be, modulo some possibly very minor tweaks.
 
 
 
Given the highly generalized nature of MQTT, and the not very well standardized payload format, there will almost certainly be more expansion of this driver moving forward to deal with specialized cases and such. But it has plenty of functionality to incorporate MQTT usefully into CQC at this point.
 

 



#2 pete_c

pete_c

    Cocoonut

  • -=Gold Supporter=-
  • 9400 posts
  • Location:House
  • Experience:average
  • Software:Main Lobby, Open Source Automation
  • Hardware:HAI OmniPro II, Mi Casa Verde Vera, Ocelot
  • Tech:X10-PLC, X10-RF, UPB, INSTEON, Z-Wave, ZigBee, 1-Wire, xAP, xPL, ALC
  • Audio:Russound
  • Video:MythTV
  • CCTV:analog, ip, dvr
  • Phone:Asterisk, FreePBX, Ooma, POTS, VoIP via ISP

Posted 10 May 2019 - 09:01 AM

Very good news Dean.

Is the Mosquitto server part of the mqtt plugin?

#3 Dean Roddey

Dean Roddey

    Cocoonut

  • Registered
  • PipPipPipPip
  • 1938 posts
  • Software:CQC

Posted 10 May 2019 - 12:54 PM

No, CQC is just a client in this scenario. So it just subscribes to topics on external MQTT servers. So it's just interested in getting information, it doesn't act as an MQTT server itself. A lot of folks these days are probably likely to use some cloud based server, as unfortunate as I think that is, like AWS. 

 

I've considered implementing a server and selling it separately as our first non-CQC product, but I'm not sure it's worth the effort.



#4 pete_c

pete_c

    Cocoonut

  • -=Gold Supporter=-
  • 9400 posts
  • Location:House
  • Experience:average
  • Software:Main Lobby, Open Source Automation
  • Hardware:HAI OmniPro II, Mi Casa Verde Vera, Ocelot
  • Tech:X10-PLC, X10-RF, UPB, INSTEON, Z-Wave, ZigBee, 1-Wire, xAP, xPL, ALC
  • Audio:Russound
  • Video:MythTV
  • CCTV:analog, ip, dvr
  • Phone:Asterisk, FreePBX, Ooma, POTS, VoIP via ISP

Posted 10 May 2019 - 01:13 PM

Yeah Mosquitto server will run on Windows but is is easier to run / install on Linux. 
 
You could also install Docker on Windows and then install Mosquitto in docker.
 
Relating to automation and using MQTT I am currently seeing more automation tinkerers running MQTT at home versus the cloud; well and similiar to updating WiFi automation devices firmware to work with MQTT and opensource automation software.

Personally the new WiFi switches are candy to those folks tethered to the smartphones / yut of today that really only care that they can manage their automation in the cloud.
 
I have been playing a bit with bean counting using Thingspeak.  I got a MATLAB account a few months back using my University account which gives me a lot of play time with it.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users