Its been a very long while since I've last posted. Derek got me inspired to look at Alexa controllable xAP endpoints. As a proof of concept I took the faxumo code and made a few very minor modifications to prove it can act as a bridge to control xAP too.
./fuaxmo.py
Alexa discover devices
<Wait 20s for it to find the fake control points fauxmo has created>
Alexa relay 1 on
Alexa relay 1 off

Member for
17 yearsNicely done
Great job! This opens up a lot of new options.
We had talked about making this a Plugboard compatible affair - that would be the icing on the cake.
Derek.
Member for
13 years 4 monthsCould be the holy grail to HAH
I spoke to Derek the other day regarding the Echo and Alexa and ordered one from Tesco (£40), I have only had it a day and I am quite impressed.
If this can be fully integrated with the HAH it would be a major step forward and I am sure would rekindle new/existing interest in the HAH.
Brett many thanks for your time and effort in this new endevour.
Member for
14 years 5 monthsexcellent work as ever Brett
excellent work as ever Brett :)
Member for
16 years 5 monthsgets a +1 from
gets a +1 from me...
...although I'm still trying to get full integration with node-red, I still can't get that MQTT gateway script to work!
Member for
15 years 1 monthAnother thanks
Just to add my tuppenceworth, now that Amazon have these back in stock (and a bit cheaper) I took delivery of one yesterday. Even SWMBO was impressed at how easily it all went together. She now has voice control of the heating and lights! Great job.
Member for
14 yearsSimply Brilliant!
It's great to have the MQTT gateway working. The possibilities are now endless. Awesome work Brett.
Has anyone else experienced problems using the gateway the other way around i.e. getting CurrentCost data into MQTT??
I successfully subscribed to dbzoo/livebox/CurrentCost/ch/1 using NodeRed but nothing goes through the gateway.
It works fine the other way MQTT to XAP.
I've been scratching my head on this for a days, any help would be appreciated.
Member for
16 years 10 monthsIts been while a quite since
Its been while a quite since I looked at the xAP/MQTT gateway. I too would have to spend some time looking at what I wrote.
https://github.com/dbzoo/hah/blob/master/userapps/hah/xap-plugboard/sam…
Member for
14 yearsMQTT Gateway
Thanks for the fast reply Brett.
Are you able to point me in the right direction of how to launch the script with some debugging info so I can try and workout where it's failing?
Member for
16 years 5 monthsHi Everyone...so quiet in
Hi Everyone...so quiet in here these days.
Just in case anyone else trying to use the MQTTGateway to pass info out, I have finally gotten around to hacking it so that xAP msgs get sent to MQTT.
I'm now running HomeAssistant as main controller but I refuse to let my O2 Livebox or my Jogglers die.
HomeAssistant likes json, so I figured I don't really need xAP msgs in payload so I'm stripping it out and passing what's needed.
I have configured a load of MQTT sensors in HA and they are now reading all this lovely data!
I don't really listen for incoming MQTT msgs because I use the node-red-xap node to send xAP messages from HA via NodeRed to HAH
It's all a bit clunky but works.
Brett, I apologise in advance for making a mess of your nice code.
Best wishes to everyone, would love to hear what you're all doing now in life and on the HA front!
Member for
15 years 1 monthI'm still running my HAH, now
I'm still running my HAH, now with Alexa controlled devices via the fauxmo.py script. Makes it easy for SWMBO to interact with the HA system.
I still look in from time to time to see if anything is going on and also use the forum posts as a resource for remembering how it all works. (It needs very little intervention so it's easy to forget how it was all put together in the first place!)
I've never really looked at node red because it does everything I need at the moment - maybe I should explore the possibilities!
Still a great tool.
Member for
16 years 10 monthsAny code that works is good
Any code that works is good code. Nice one bodge.
I've not been doing too much on the HA front. My day job has been sucking my time and life away. The last little thing I did was to write some python that hacks the fauxmo.py code so I can turn my projector on and off with Alexa. A piece of code that gets a regular work out. It's funny, I look at how HA has evolved in the many years that have elapsed since the HAH/xAP got legs and its all still "ho-hum" compared we have. I mean how simple and cool is LUA for scripting !
Member for
14 yearsMQTT Another Way
You can also use a "UDP In" node in Node Red to grab XAP packets which are already being broadcast on your network.
Parse the input, split the data into the bits you want and send out via mqtt or use in Node Red as is.
Member for
15 years 1 monthMy Alexa controlled xap has
My Alexa controlled xap has stopped working recently. Is it possible that build 318 has had an effect on it or have I done something else?
Member for
16 years 10 monthsI don't think build 318 is
I don't think build 318 is the cause its something else as the xap protocol has left the HAH system. In anycase the libraries updated to make twitter work are not used by anything else, which is why only twitter was failing.
Member for
15 years 1 monthBrett, Thanks for this I've
Brett, Thanks for this I've obviously messed something else up so I'll poke around to see if I can find out why it's stopped working.
Member for
15 years 1 monthIn spite of my poking around
In spite of my poking around I have been unable to persuade my Alexa to interact with the fauxmo.py script, even the one posted by Brett which just switches the relays on and off. When I first ran that script it just worked.
Does anyone else still have the fauxmo.py script running successfully with the Alexa?
Member for
16 years 10 monthsI don't run the xAP version
I don't run the xAP version of the fauxmo script but I do run a fauxmo script that I've modified to emit RS232 protocol codes to control my projector so I can turn it on/off with alexa. This is still working.