05-12-2020, 09:08 PM
I am looking into Fauxmo to give Echo support to CQC and there is a couple of ways to use it..
One is to use the MQTT plugin, which to me is the most flexible that I can see at the moment. (HTTP is also supported, but I don't know about two way support)
To use it with CQC is kind of cumbersome though.
MQTT driver (Sub) -> Triggered Event -> write to associated CQC Driver.
Change in device status -> Triggered Event -> MQTT Driver (Pub).
Basically, when you ask for Alexa to turn on the kitchen light, Fauxmo publishes a MQTT message and because CQC is subscribed it updates the field. This in turn then uses a triggered event to get CQC to turn the kitchen light on via the lighting driver.
A little cumbersome, but not too bad.
Fauxmo also can get the status of the device, if it were a pure MQTT device it would just publish its change of status (and that's how we work with MQTT in CQC currently), but for this setup, if you say, turn the light on you would again need a triggered event to publish a MQTT message so that Fauxmo is updated.
Would it be possible to have a MQTT driver/utility for CQC that wraps all that up nicely. Something that would publish any [data configured] from CQC to any topic desired. It would allow CQC to integrate with all other MQTT enabled products a little easier (e.g. another MQTT based server
One is to use the MQTT plugin, which to me is the most flexible that I can see at the moment. (HTTP is also supported, but I don't know about two way support)
To use it with CQC is kind of cumbersome though.
MQTT driver (Sub) -> Triggered Event -> write to associated CQC Driver.
Change in device status -> Triggered Event -> MQTT Driver (Pub).
Basically, when you ask for Alexa to turn on the kitchen light, Fauxmo publishes a MQTT message and because CQC is subscribed it updates the field. This in turn then uses a triggered event to get CQC to turn the kitchen light on via the lighting driver.
A little cumbersome, but not too bad.
Fauxmo also can get the status of the device, if it were a pure MQTT device it would just publish its change of status (and that's how we work with MQTT in CQC currently), but for this setup, if you say, turn the light on you would again need a triggered event to publish a MQTT message so that Fauxmo is updated.
Would it be possible to have a MQTT driver/utility for CQC that wraps all that up nicely. Something that would publish any [data configured] from CQC to any topic desired. It would allow CQC to integrate with all other MQTT enabled products a little easier (e.g. another MQTT based server
Mykel Koblenz
Illawarra Smart Home
Illawarra Smart Home