I am also getting these errors. It happens when I restart HA, running as a docker on raspberry pi
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexaapi.get_bluetooth:An error occured accessing AlexaAPI: An exception of type AttributeError occurred. Arguments:
("'NoneType' object has no attribute 'json'",)
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexaapi.get_device_preferences:An error occured accessing AlexaAPI: An exception of type AttributeError occurred. Arguments:
("'NoneType' object has no attribute 'json'",)
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexaapi.get_dnd_state:An error occured accessing AlexaAPI: An exception of type AttributeError occurred. Arguments:
("'NoneType' object has no attribute 'json'",)
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexaapi.get_notifications:An error occured accessing AlexaAPI: An exception of type AttributeError occurred. Arguments:
("'NoneType' object has no attribute 'json'",)
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexalogin.login:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexaapi.get_devices:An error occured accessing AlexaAPI: An exception of type AttributeError occurred. Arguments:
("'NoneType' object has no attribute 'json'",)
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexaapi.get_bluetooth:An error occured accessing AlexaAPI: An exception of type AttributeError occurred. Arguments:
("'NoneType' object has no attribute 'json'",)
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexaapi.get_device_preferences:An error occured accessing AlexaAPI: An exception of type AttributeError occurred. Arguments:
("'NoneType' object has no attribute 'json'",)
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexaapi.get_dnd_state:An error occured accessing AlexaAPI: An exception of type AttributeError occurred. Arguments:
("'NoneType' object has no attribute 'json'",)
2020-05-12 00:50:20 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
What version are you on for the component and alexapy? It seems you have a mismatch somewhere. You don’t have a /config/alexapy directory do you? If so, delete it.
Thanks for the suggestion. I updated to 2.7.2 and am having the same problem. When I put my credentials in and click submit it hangs as if it’s doing something, then stops and stays on that credentials page. I tried again clicking advanced debugging to see if it would give me anything in my logs. Both times I’ve clicked submit I can’t find anything in my logs.
EDIT: I have a few errors in my logs from other things but this one seems to pop up every time I try and click submit. Could just be a coincidence though.
Logger: homeassistant.core
Source: core.py:150
First occurred: 11:28:44 AM (7 occurrences)
Last logged: 11:36:24 AM
Error doing job: Unclosed client session
Error doing job: Unclosed connector
2020-05-12 20:34:06 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
2020-05-12 20:34:06 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
If I return to 2.7.1 this is the error i see:
2020-05-12 21:20:48 ERROR (MainThread) [alexapy.helpers] alexaapi.get_dnd_state:An error occured accessing AlexaAPI: An exception of type AttributeError occurred. Arguments:
("'NoneType' object has no attribute 'json'",)
2020-05-12 21:20:48 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
2020-05-12 21:20:48 ERROR (MainThread) [alexapy.helpers] alexaapi.get_notifications:An error occured accessing AlexaAPI: An exception of type AttributeError occurred. Arguments:
("'NoneType' object has no attribute 'json'",)
2020-05-12 21:20:48 ERROR (MainThread) [alexapy.helpers] alexalogin.login:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
2020-05-12 21:20:48 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
2020-05-12 21:20:48 ERROR (MainThread) [alexapy.helpers] alexaapi.get_devices:An error occured accessing AlexaAPI: An exception of type AttributeError occurred. Arguments:
("'NoneType' object has no attribute 'json'",)
2020-05-12 21:20:48 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
2020-05-13 08:48:02 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
(‘Session is closed’,)
2020-05-13 08:48:02 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
(‘Session is closed’,)
2020-05-13 08:48:02 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
(‘Session is closed’,)
2020-05-13 08:48:02 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
(‘Session is closed’,)
2020-05-13 08:48:02 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
(‘Session is closed’,)
2020-05-13 08:48:02 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
(‘Session is closed’,)
2020-05-13 08:48:02 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
(‘Session is closed’,)
2020-05-13 08:48:02 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
(‘Session is closed’,)
2020-05-13 08:48:02 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
(‘Session is closed’,)
If its any help I am getting the same error, with not being able to add the Alexa Media Integration using amazon.co.uk as the region. I then changed the Amazon region to amazon.com and then I could enter the captcha and 2fa credentials. Integration added successfully after that.
> alexalogin.login:An error occured accessing AlexaAPI: An exception of type AssertionError occurred. Arguments: ()
Hey Everyone! It has been a while since I posted here, but I wanted to share something I’ve been working on for a little while now. I hope you enjoy it as much as much as I do.
Alexa Actions
Alexa Actions is a custom Alexa skill coupled with a Home Assistant setup and configuration guide to enable Actionable Notifications for your automations to your Alexa devices.
This provides the ability for your Alexa devices to make queries and await your response.
Example
Alexa: “I’ve noticed the front door has been unlocked for 5 mins, would you like me to lock it?”
Thanks, I’ve installed a clean Home Assistant image and the Alexa Media Integration with Region set to amazon.co.uk now works ok. I’ll migrate everything to to my new install as I have about 3 years worth of upgrades and patches on my current system so probably some old config conflicting with this.
2020-05-14 08:22:13 ERROR (MainThread) [alexapy.helpers] alexalogin.login:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
2020-05-14 08:22:13 ERROR (MainThread) [alexapy.helpers] alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type RuntimeError occurred. Arguments:
('Session is closed',)
2020-05-14 08:22:13 ERROR (MainThread) [alexapy.helpers] alexaapi.get_devices:An error occured accessing AlexaAPI: An exception of type AttributeError occurred. Arguments:
("'NoneType' object has no attribute 'json'",)
However, that I all that I kept from the log before removing config data and restarting HA - after which the log has been flushed.
Note - mine is also configured to use amazon.co.uk
I can try again at some point over the coming weekend.