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

It does not. So I've done everything correctly with apache and php within the terminal?
 
I imagine I'm messing up something when I create the php file, or more likely when I put the url into the ha-bridge webpage.
 
That code of yours I'm using, is it for turning the light on or off?
 
The error is most likely in the .php file although if it matches what I have, I don't know what the problem is. It is not related to the bridge at all since that is not being used if you just entered the url in the browser. The access log shows a return of 200 which is normal. My .php file, if used with a ligh switch would be specified for the On as well as the Off url in the bridge configurator. If you click Test next to On it should turn the light on. If you were to tell the Echo (once it is working) to dim the light, then that .php should pass the dim parmater whihc the brdge will add if it receives that command from echo. The Off Url is the same because it just toggles the state. In other words, if you said Turn off and it was already off, it would  turn it on. The code can be changed but first you need to get it to talk to HH. I assume you have no trouble toggling the light from HH?
 
No trouble at all toggling from HH.  What are you putting for a url in the echo web page?
 
Also, what about some of the other settings?
Device Type, Map Type, HTTP Headers, Http Verb
 
 
Wait forget the echo does the URL control the switch properly? He might have said but I'm on my phone so apologies if it is redundant.
 
Heffneil, I'm so far from messing with the echo. haha. I still can't get the ha bridge to turn the light on and off.  Keeps giving me an error, but when I try to copy and paste it dissapears, but I've typed it out.
 
Request Error, Please look in your habridge log: error {"type":6,"address":"/lights/1","description":"No HUE configured","parameter":"/lights/1state"}
 
what happened when you entered the above url in a browser? Forget about the bridge and echo until that works
 
Are you telling the echo "find devices"

Will the URL control the light? If not you have bad code in the php. The php is just calling HH functions. Start baby steps. Could you find my entire code? I'll post it this evening and you just use my code with different URL variables for your switch. It's elegant and efficient and once it works it works.
 
When entered into the browser, the URL should toggle the light. Nothing visible is returned to the browser. If you are familiar with the HH Script Editor, you could also test your API call to make sure it is correct.
 
I haven't gotten to the echo at all.  Still trying to get the ha bridge website to turn on and off a single light with the ha bridge. I couldn't find your entire code, but def appreciate you re-posting it.  You two are fantastic!
 
It appears that the bridge is not (yet) the problem, but just verify by entering the url in Safari.
 
When I put that url in safari and hit enter the light doesn't turn on and off.  It asked me for a username & password and I used my HH ones.
 
Back
Top