Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alarm Control Panel - Alexa Media Alarm Control Panel #2693

Open
Dzoker2 opened this issue Nov 24, 2024 · 5 comments
Open

Alarm Control Panel - Alexa Media Alarm Control Panel #2693

Dzoker2 opened this issue Nov 24, 2024 · 5 comments

Comments

@Dzoker2
Copy link

Dzoker2 commented Nov 24, 2024

Describe the bug: Error in the HA Log

Logger: homeassistant.components.alarm_control_panel
Source: components/alarm_control_panel/init.py:210
integration: Alarm control panel (documentation, issues)
First occurred: 23:04:23 (1 occurrences)
Last logged: 23:04:23

Entity None (<class 'custom_components.alexa_media.alarm_control_panel.AlexaAlarmControlPanel'>) is setting state directly which will stop working in HA Core 2025.11. Entities should implement the 'alarm_state' property and return its state using the AlarmControlPanelState enum, please report it to the custom integration author.

To Reproduce: Open the HA log

  1. Go to 'Settings'
  2. Click on 'System/Logs'
  3. See error

Expected behavior: Not to see the error in the log

System details

  • Home Assistant version: 2024.11.3
  • alexa_media version (from const.py or HA startup log): 4.13.8
  • alexapy version (from pip show alexapy in homeasssistant container or HA startup log): I don't know how to find this
  • Is Amazon 2FA/2SV enabled <!---We will not debug login issues if unanswered---> (y/n): Y
  • Amazon Domain: Amazon.com

Debug Logs (alexa_media & alexapy)
2024-11-23 23:04:23.562 DEBUG (MainThread) [custom_components.alexa_media.helpers] M*****o@y*******m: Adding []
2024-11-23 23:04:23.562 WARNING (MainThread) [homeassistant.components.alarm_control_panel] Entity None (<class 'custom_components.alexa_media.alarm_control_panel.AlexaAlarmControlPanel'>) is setting state directly which will stop working in HA Core 2025.11. Entities should implement the 'alarm_state' property and return its state using the AlarmControlPanelState enum, please report it to the custom integration author.

I gave it my best to follow the template.

Thank you

Copy link

The issue has received no activity for 60 days and will be closed in a week.

@Dzoker2
Copy link
Author

Dzoker2 commented Jan 24, 2025

Hi, still getting this error daily!

@danielbrunt57
Copy link
Collaborator

Hi, could you try replacing alarm_control_panel.py with this version: alarm_control_panel.zip

@Dzoker2
Copy link
Author

Dzoker2 commented Jan 25, 2025

Hi @danielbrunt57

I just did and restarted HA. I got this new error after restart:

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:324
First occurred: 19:02:01 (1 occurrences)
Last logged: 19:02:01

Detected that custom integration 'alexa_media' is setting state directly. Entity None (<class 'custom_components.alexa_media.alarm_control_panel.AlexaAlarmControlPanel'>) should implement the 'alarm_state' property and return its state using the AlarmControlPanelState enum at custom_components/alexa_media/helpers.py, line 54: add_devices_callback(devices, False). This will stop working in Home Assistant 2025.11, please create a bug report at https://github.com/alandtse/alexa_media_player/issues

But then I replaced back the old version, restarted and I got this same new error ( I did not see the old error in the last 10-15mn).

Let me reinstall the integration and let it "marinate" for some time and see how it goes.. If you want me I can create a new issue with this new error.

When I compared the files content btw the new and old one they are identical.

Thank you

@danielbrunt57
Copy link
Collaborator

danielbrunt57 commented Jan 25, 2025

That's bizarre that the warning message has changed.

For what it's worth, I'm attempting to do this blindly (since I have no Alexa Guard here in Canada) and am basing it solely off this HA blog post: New alarm control panel state property and state enum.

Try this version: alarm_control_panel.zip

BTW, you do have Alexa Guard in your Alexa account, correct?
Is it a subscription model now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants