Alexa Guard no longer works after renaming the entity
See original GitHub issueDescribe the bug I updated to the latest version and Alexa Guard showed up. I tested it and it worked fine. I used the HASS rename function to rename the device (wanted to remove the letters/numbers at the end) and now it doesn’t work/show up. I see the following error in HASS:
An error occured accessing AlexaAPI: An exception of type JSONDecodeError occurred. Arguments:
('Expecting value: line 1 column 1 (char 0)',)
And a separate error:
Error while setting up platform alexa_media
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/homeassistant/.homeassistant/custom_components/alexa_media/alarm_control_panel.py", line 34, in setup_platform
hass) \
File "/home/homeassistant/.homeassistant/custom_components/alexa_media/alarm_control_panel.py", line 70, in __init__
guard_dict = (data['locationDetails']
TypeError: 'NoneType' object is not subscriptable
To Reproduce Not sure if this is what caused it but try renaming Alexa Guard panel in HASS.
Expected behavior Alexa Guard alarm panel showing up/functioning
System details
- Home-assistant (version): 0.94.3
- Hassio (Yes/No): No (hassbian)
- alexa_media (version from
const.py
or HA startup): 1.3 - alexapy (version from
pip show alexapy
or HA startup): 0.7
Issue Analytics
- State:
- Created 4 years ago
- Comments:10
Top Results From Across the Web
Alexa Guard is Not Working As Expected - Amazon.com
In the Alexa app, open Devices, open Guard, and select Settings. Under Echo Devices, confirm that the device is listed and selected (indicated...
Read more >Old device name disappears but is still active after device ...
Old device name disappears but is still active after device rename · Open your Alexa app. · Select the Menu. · Select Skills....
Read more >Alexa Device Rename? Doesn't work in Routines. - Reddit
Now go to the Alexa App. Do a Discover Devices Search. Your old names should disappear and be replaced with the new ones....
Read more >Alexa Guard Overview & Integration w/Home Assistant
Alexa Guard can make your home safer and more secure. Read this article to find out how, and how to Integrate it with...
Read more >2022.9: Home Assistant Birthday Release!
If you don't know yet, this month is Home Assistant's birthday! ... 9 Years later, Home Assistant is actively used by more than...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok thanks for the info. I’ll explore that angle although it shouldn’t since we don’t use the ha entity name for anything.
I took a closer look at the code and I don’t see why the renaming would do anything. I also tested renaming on my end (both entity_id and name) and didn’t see the issues you reported. I am using a newer version that handles the log errors you reported so that may have resolved it. I’ll close this when I make that live. If you run into it again please let me know.