How can I best debug this?
I am using newest hassio and sitting in germany.
The addon log look like this:
got request for getDevices
got getState for device: 7094180751441CJQ
got getState for device: d301d1d2f225409bb7e9961700cad079
got getState for device: b96454b9645e4dd2bcd6ffb81b378c0b
got getState for device: 24fd69af48844fb78aa026dbae2c7cf8
got getState for device: G090LF11741608R0
got getState for device: ca69be5cdb874b74b4d2ea87ad5c7f12
got getState for device: 14a4c9ed6d2a45bbbda0b47f52d10839
got getState for device: 35e398bcf28946c497ea3b825ef0c354
got getState for device: 6e917ac1070549dbb74c02fe6d47fe44
got getState for device: G090LF1180340C7E
got getState for device: G2A0P30774060QRT
got getState for device: 30559f9c4cd247a1a2d8ebfb9d8d7df2
got getState for device: 1084C963D52F4E85BB2556000DC1CA7A
Perhaps there is an easy way to print the json result of the call to get the status. But I am not familar with python, so dont know how to modify your alexa.py file…
EDIT:
I checked your code a bit. You use the following:
setup_alexa('addon_9ff8aed5_alexaapi', hass, config, add_devices_callback)
def setup_alexa(host, hass, config, add_devices_callback):
"""Set up a alexa api based on host parameter."""
alexa_clients = hass.data[ALEXA_DATA]
alexa_sessions = {}
track_utc_time_change(hass, lambda now: update_devices(), second=30)
@util.Throttle(MIN_TIME_BETWEEN_SCANS, MIN_TIME_BETWEEN_FORCED_SCANS)
def update_devices():
"""Update the devices objects."""
try:
req = requests.post('http://' + host + ':8091/alexa-getDevices')
there you define your host as addon_9ff8aed5_alexaapi
and than you call http://’ + host + ':8091/alexa-getDevices wich results in calling
Is there an easy way to send TTS to all devices or must we loop over them in a script?

While I haven’t implemented this yet for my Echo’s with my current Sonos and DLNA speakers I can invoke all of them at once by throwing them in a group. This sometimes has mixed results where it plays on 2/3 and other times it knocks out all 3.
When someone figures out how to install this on a Docker install, I can help test.
I have 4 echo dots, 1 echo, and 1 echo show. Home Assistant is running on an old laptop running Ubuntu Server under Docker. I have experimented a little with TTS, and play music on my Echos on occasion, but I’m primarily interested in TTS notification ability as I am trying to avoid having to buy a Chromecast Audio and a separate speaker for every room that has an Echo.
The main error is that it didn’t login correctly. Troubleshooting I’d say to ensure your credentials are correct and ensure that you have two-factor authentication off on your amazon.com account.
The error about alexaURL being null is because it is being passed to the rest of the node.js code, but fails to do so when the login fails.
This is awesome!
I think the 2FA is pretty important. Maybe, nightmarejs can set the „remember me“ check and keep the cookie. That way, you can turn off the 2FA for initial setup and turn it back on after. Just my 2 cents.
LOL I feel dumb I swear I copied the right pass from lastpass. I see now that I did not.
EDIT: Well now I know that I have the correct password in there I’m still getting no love. My password is complex though with special characters. This shouldn’t cause an issue though should it? Thanks. BTW 2 Factor is disabled. I honestly didn’t know that amazon had 2 factor functionality. Looking forward to when this is compatible with it because I’d love to enable it.
EDIT2: I uninstalled and reinstalled the addon and now it picked up my devices.
If login fails look at /tmp/.alexa.login. Search for “password” and see if you are being prompted for the captcha. If so, you can attempt to login to Alexa manually from a browser (from the same IP) and see if that fixes the issue for you. It never did for me, so I logged in to https://alexa.amazon.com with Chrome and used the cookies.txt extension(https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg?hl=en) to export my amazon cookies to /tmp/.alexa.cookie. Other individuals have reported success using the same procedure, but only when using Firefox.
When you login in your browser, you can click “remember this computer” and this computer will show up in a list under the amazon 2FA settings. Once it’s on the list, you don’t need to use 2FA on this browser.
Maybe, you can link your add-on to the config folder where one can save the cookie.
I’ll certainly look into adding that as an option. I can mount the share directory of the hassio install within the container and then users could drop the cookies file there.