Haiku Using Amazon Alexa devices (Echo, Dot, Tap, etc.) with HAI

I tried that.  I found this too:  I tried this on Pi B+ and Pi 2 on Raspian and Arch with echobridge v0.1.1,v0.1.2,v0.1.3 on wired network with no success until I used wireless networking. What hardware, platform, echobridge version are you using?
 
I put my macmini on the wireless network and removed it from the hardwire.  I will let you know if it works but I have some connection issues now :)
 
"Exactly. It’s all done via multicast. The bridge must get traffic destined for the multicast address 239.255.255.250. The echo solicits information by sending to that multicast address, if the bridge doesn’t see it, it can’t respond."
 
I don't see an option on my wireless access points to disable this option to block the multicast.... Kinda sucks to get this far.
 
Not sure about that. I don't get a response on 1900 either. I will sleep on this and let you know if I can find anything else.
 
When I do a discovery something happens on the command line with the java program:
 
2016-09-15 23:33:47.991  INFO 80428 --- [nio-8080-exec-6]
c.armzilla.ha.upnp.UpnpSettingsResource  : upnp device settings
requested: amazon-ha-bridge from 192.168.1.83
 
2016-09-15 23:33:47.994  INFO 80428 --- [nio-8080-exec-7]
c.armzilla.ha.upnp.UpnpSettingsResource  : upnp device settings
requested: amazon-ha-bridge from 192.168.1.83
 
2016-09-15 23:33:48.169  INFO 80428 --- [nio-8080-exec-9]
com.armzilla.ha.hue.HueMulator           : hue lights list requested:
hm3JnxYjJAKVDx8OkGQZwk1UKTwslVGKn0or5N29 from 192.168.1.83
 
2016-09-15 23:33:48.243  INFO 80428 --- [nio-8080-exec-8]
com.armzilla.ha.hue.HueMulator           : hue lights list requested:
hm3JnxYjJAKVDx8OkGQZwk1UKTwslVGKn0or5N29 from 192.168.1.83
 
2016-09-15 23:33:48.335  INFO 80428 --- [io-8080-exec-10]
com.armzilla.ha.hue.HueMulator           : hue api root requested:
hm3JnxYjJAKVDx8OkGQZwk1UKTwslVGKn0or5N29 from 192.168.1.83
 
2016-09-15 23:33:48.407  INFO 80428 --- [nio-8080-exec-1]
com.armzilla.ha.hue.HueMulator           : hue api root requested:
hm3JnxYjJAKVDx8OkGQZwk1UKTwslVGKn0or5N29 from 192.168.1.83
 
2016-09-15 23:33:53.413  INFO 80428 --- [nio-8080-exec-2]
c.armzilla.ha.upnp.UpnpSettingsResource  : upnp device settings
requested: amazon-ha-bridge from 192.168.1.213
 
2016-09-15 23:33:53.979  INFO 80428 --- [nio-8080-exec-6]
c.armzilla.ha.upnp.UpnpSettingsResource  : upnp device settings
requested: amazon-ha-bridge from 192.168.1.214
 
2016-09-15 23:33:54.541  INFO 80428 --- [io-8080-exec-10]
c.armzilla.ha.upnp.UpnpSettingsResource  : upnp device settings
requested: amazon-ha-bridge from 192.168.1.216
 
2016-09-15 23:33:56.111  INFO 80428 --- [nio-8080-exec-3]
c.armzilla.ha.upnp.UpnpSettingsResource  : upnp device settings
requested: amazon-ha-bridge from 192.168.1.15
 
2016-09-15 23:33:56.137  INFO 80428 --- [nio-8080-exec-5]
c.armzilla.ha.upnp.UpnpSettingsResource  : upnp device settings
requested: amazon-ha-bridge from 192.168.1.215
 
So I just logged in and it shows the devices - did you say that would happen? Holy crap im losing my edge.  It is telling me it found nothing this entire time - so confused and like you exhausted.  Good night!
 
If you see those messages from the bridge in the console, then we know that the broadcast is getting through from the Echo. The messages look very similar to what I see on the console here. What are the addresses 1.15, 1.83, 1.213,1.214,1.215, 1.216? Do you have multiple Echos? After you request the "discover devices" from the Alexa app, the Echo says it is searching and then says it finds nothing? If we can't get this to work, I would try the same bridge I am using, that way we have a better point of comparison.
 
Wait, did you say that the Alexa app shows the devices? If so, what happens if you ask Alexa to turn on one of them?
 
It may have said no devices found the last time you did it because it had already found them and perhaps when it did, you didn't hear it.
 
So I changed this line:
 
else{
   hhapi('controller.unitWithNumber('.$_GET["DeviceNum"].').toggle()');
 
where I am passing in the URL variable.  You originally had it hard coded.  What this does is let us use one file and just setup the devices based on the device number.  If you notice in the configurator it will ask you for a Device ID I guess for the vera system.  Modifying that will let you use one file only and use the ID in the URL.  This seems like a little less work to get things working.  The next trick is to populate a file with the names and ID's that we can import to the configurator?
 
Oh and I tested dimming and it doesn't seem to be working... Not sure what the issue is but its just turning lights on and off when I say dim 50%
 
ihf said:
It may have said no devices found the last time you did it because it had already found them and perhaps when it did, you didn't hear it.
I am confident it never replied with devices found but I can't complain its working now!
 
That's great. To get dimming to work, you need to make sure that the URL is correct per the HH API documentation and is in the spot for the dimming URL in the bridge configuration. My (older) bridge only has on/off but the on accepts the intensity parm so I can dim.
You have the hard part done. Congratulations! Your merit badge is on its way. :)
 
Is there any way to get HH now, I waited for Space Helper, but I won't go there.
Thanks

CJW-PIC


Sent from my iPad using Tapatalk HD
 
Back
Top