Closed TheChosenOne1984 closed 5 months ago
You should call the service "alarmo.disarm" from now on and not "alarm_control_panel.alarm_disarm"
Hi Omrizn,
thanks for getting back on this!
How can I do this?
The control panel currently has this code for example:
states:
- arm_away
type: alarm-panel
entity: alarm_control_panel.erdgeschoss
Also, if I have a look on my entities, they are still called like before
Dachgeschoss alarm_control_panel.dachgeschoss
Erdgeschoss alarm_control_panel.erdgeschoss
Keller alarm_control_panel.keller
Haus alarm_control_panel.haus
So what do I have to change to use alarmo.disarm on my different zones?
Also, was this change in the release notes and I've overseen it?
Thank you again and cheers
Please share a screenshot of the mode settings for the ‘erdgeschoss’ area in alarmo and a screenshot of the properties of the corresponding alarm_control_panel entity in the Developer Tools - states panel.
Same problem here :
"No se pudo llamar al servicio alarm_control_panel/alarm_disarm. AlarmoBaseEntity.async_alarm_disarm() takes 1 positional argument but 2 were given"
Hi Nils,
also thanks to you for supporting me here. Hopefully this is what you are looking for?
@TheChosenOne1984 Abwesend / armed away is disabled so I think the error message you are receiving is correct. It seems there is no bug to discuss here.
Hi @nielsfaber ,
I've put this to disabled this morning as I was not able to deactivate the alarm. I was hoping this would help and forgot to enable this again. But even when I have this on enabled again, I still have trouble with disabling the alarm. See my screenshot and the attached log.
2024-06-10 14:47:05.100 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140620861735120] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 959, in entity_service_call
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Entity alarm_control_panel.dachgeschoss does not support this service.
2024-06-10 14:48:26.727 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140620861735120] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/alarm_control_panel/__init__.py", line 207, in async_handle_alarm_disarm
await self.async_alarm_disarm(self.code_or_default_code(code))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: AlarmoBaseEntity.async_alarm_disarm() takes 1 positional argument but 2 were given
2024-06-10 14:48:41.528 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140620861735120] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/alarm_control_panel/__init__.py", line 207, in async_handle_alarm_disarm
await self.async_alarm_disarm(self.code_or_default_code(code))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: AlarmoBaseEntity.async_alarm_disarm() takes 1 positional argument but 2 were given
2024-06-10 14:51:39.889 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140620861735120] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/alarm_control_panel/__init__.py", line 207, in async_handle_alarm_disarm
await self.async_alarm_disarm(self.code_or_default_code(code))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: AlarmoBaseEntity.async_alarm_disarm() takes 1 positional argument but 2 were given
@TheChosenOne1984 you can fix that issue yourself by updating alarmo. I don’t spend time on bug issues from users who use outdated versions.
@nielsfaber , sorry for the noise. I'm still new to the game and I forgot to look for available updates in HACS. I only checked in HA settings. In fact, you supported me, and I'm really thankful you did.
So, sorry again and thank you!
Alarmo Version
v1.10.0
HA Version
2024.6.1
Bug description
After updating to 2024.6.1 its no longer possible to enable or disable the alarm. Not via a control panel in the browser gui or android app and also not via sonoff nspanel (esphome).
If you need further information, let me know.
Thanks a lot!
Steps to reproduce
Try to enable or disable the alarm. The attached error message is shown.
Relevant log output