question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Alexa Guard no longer works after renaming the entity

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
alandtsecommented, Jun 26, 2019

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.

0reactions
alandtsecommented, Jun 30, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found