|
|
|
Download Amazon underground from here
https://www.amazon.com/gp/mas/get/android/
And install from there.
Cheers, Matt.
My views (except when I am looking out their windows) are not those of my employer.
do what I do and have email addresses set up in Google play and put your address in that country, I have a login in USA, UK and Aussie, thus any updates and apps can be installed for anywhere that counts.
Does anyone know where to get the Echo remote? I am starting to believe it has been discontinued and really need one for my bedroom.
Sorry for tagging on the end of the Amazon Echo post,... but I'm just continuing on from Sumners mention of MQTT, so have been learning it and am just continuing from there...
I've setup OpenHAB, Mosquitto (same device) programmed up an Arduino with Ethershield, a relay and some reed switches and I've got messages going between Arduino and Mosquitto working well.
My issue is I can't seem to get the garage door status to display properly in the OpenHAB interface. If I sub to the message to test, I can see the inbound Garage door states coming into Mosquitto from the Arduino:
root@chip:/usr/share/openhab/configurations# mosquitto_sub -d -t "openhab/garage/doorstatus"
Client mosqsub/2432-chip sending CONNECT
Client mosqsub/2432-chip received CONNACK
Client mosqsub/2432-chip sending SUBSCRIBE (Mid: 1, Topic: openhab/garage/doorstatus, QoS: 0)
Client mosqsub/2432-chip received SUBACK
Subscribed (mid: 1): 0
Client mosqsub/2432-chip received PUBLISH (d0, q0, r0, m0, 'openhab/garage/doorstatus', ... (1 bytes))
3
Client mosqsub/2432-chip received PUBLISH (d0, q0, r0, m0, 'openhab/garage/doorstatus', ... (1 bytes))
3
...etc...
(where the incoming number relates to the door status, either unknown, open, closed or somewhere in between)
The OpenHAB sitemap file has the following line related to the Garage Door:
Frame label="Garage Door" {
Text item=doorStatus
Switch item=doorButton mappings=[ON="GO"]
}
The OpenHAB items file has the following line:
/* Garage Door */
Number doorStatus "Door Status [MAP(switch.map):%d]" <garagedoor> (All) {mqtt="<[mqttbroker:openhab/garage/doorstatus:state:3]"}
Switch doorButton "Garage Door" <garagedoor> (All) {mqtt=">[mqttbroker:openhab/garage/doorswitch:command:ON:ACTIVATE]"}
There is a switch.map file in the transforms folder as follows:
0=Open
1=Closed
2=In Use
3=Unknown
If I click the "GO" button in OpenHAB, the message gets all the way to the Arduino (I have serial debugging on, and if it sees the message "ACTIVATE" it triggers the relay to kick the garage door open or closed) so that direction is fine. Its the garage door state coming back that I can't work out. As above, it gets as far as Mosquitto as you can see from the command line tests, it just seems that OpenHAB sub'ing to the topic either isn't working or it isn't interpreting (or I've stuffed up the configuration) the request and displaying the status correctly.
Do I need a rule to do this? Or is it just smart enough to populate that field on incoming MQTT topics?
There must be something obvious I'm doing wrong here and I'm sure its a simple fix!!!
Any ideas?
Thanks!
chimera:
Number doorStatus "Door Status [MAP(switch.map):%d]" <garagedoor> (All) {mqtt="<[mqttbroker:openhab/garage/doorstatus:state:3]"}
Try;
Number doorStatus "Door Status [MAP(switch.map):%d]" <garagedoor> (All) {mqtt="<[mqttbroker:openhab/garage/doorstatus:state:default]"}
WTF!!! THANKS DUDE!!! That was too simple. Cheers!
Something else for those using the Echo with openHAB...
https://github.com/unityfire/alexa-ha
TLDR ; Just noticed my Amazon Fire TV's search got upgraded to what I assume is the equivalent of echo, and sure enough the voice control is pretty amazing! Now just need to keep it a secret or my friends will start ordering all sorts of things next time they're around :D
chimera: SumnerBoy, what's the advantage of UnityFire vs the HA bridge from Armzilla? I see UnityFire publicly released today, perhaps a little too soon to adopt?
Hello Chimera, SumnerBoy & all :)
I am the author of Alexa-HA and just wanted to give you a quick summary as to why this project has been created. I've been using OpenHAB for years, and everything in this v1.0 release has been mostly working great for my needs for quite a while. Certainly some improvements are needed but it is stable today. Realizing the larger potential for Home/Work automation, I abstracted the configuration and open sourced it for anyone to use. The main differences between Alexa-HA and the Amazon Echo HA Bridge are:
While Alexa-HA is a bit more complicated to get setup, I implore you all to give it a whirl and get involved!
Best regards,
.
|
|
|