core: Integration "Movistar Prosegur" not working

The problem

I can’t authenticate myself in the prosegur integration

What version of Home Assistant Core has the issue?

2025.2.4

What was the last working version of Home Assistant Core?

2025.2.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Prosegur alarm

Link to integration documentation on our website

https://www.home-assistant.io/integrations/prosegur/

Diagnostics information

No response

Example YAML snippet


Anything in the logs that might be useful for us?


Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 56 (14 by maintainers)

Most upvoted comments

blocking the User-Agent (especially ONLY home assistant) is a signal that they are concerned with this project alone and I think the best would be a meeting between sides to reach a compromise on how to keep this integration working.

They can block us through other means (I will not discuss those here), making the user-agent user defined will not solve.

My reading of the matter is that they were actually soft in blocking us based on the User-Agent.

I would not like to escalate things more, I’m a happy costumer and would like to keep things as they were, looking for cooperation not a fight.

I just called Prosegur and they confirmed that they have withdrawn the integrations with Alexa, Google, … so I assume that the API will not work anymore…

2025-02-20 16:35:57.594 DEBUG (MainThread) [pyprosegur.auth] websession {‘User-Agent’: ‘HomeAssistant/2025.2.4 aiohttp/3.11.12 Python/3.13’} 2025-02-20 16:35:57.854 DEBUG (MainThread) [pyprosegur.auth] login() This API has been blocked

Well I’m the maintainer and also can’t login right now… I’m able to login through my developers environment, so this can either be:

  • glitch in prosegur (will solve it self alone)
  • they are checking the user agent (home assistant) and denying access to it
  • something changed recently in HA core that has interfered with pyprosegur

Hi. With the same problem in Portugal. Will the workaround work for me, too?

Question from my side: If they’re actively blocking the UserAgent, would be possible to add this as a configurable field from the HA user, so each of us can have a different one? I mean, in the case they don’t (let’s call it) “cooperate” and keep blocking us.

With new user/pass will work again? I have done it and it still doesn’t work

No: user agent is the text string typically provided to identify the software that carries out the request, not the user/password.

This is the message I just sent to their Spanish customer support:

Estimados señores.

En los últimos años he venido empleando la integración “Prosegur Alarmas” del software de gestión domótica Home Assistant para integrar mi alarma dentro del mismo. Así, puedo monitorizar el estado de mi alarma, activar o desactivarla, y obtener imágenes de las cámaras, con completo éxito y sin ningún problema.

Sin embargo, en el día de hoy, debido a un cambio activo por parte de Prosegur, dicha integración ha dejado de funcionar. Puesto en contacto con el desarrollador de esta integración y con otros usuarios afectados, vemos que el API que esta integración emplea para comunicar con la alarma (empleando mi usuario y contraseña) se ha bloqueado para el User Agent empleado por Home Assistant sin ningún motivo o explicación.

Para mi, esta integración es fundamental y una característica imprescindible para mi sistema de alarma doméstico.

En caso de que no reviertan la situación a su estado anterior me veré obligado a buscar otro proveedor de alarma que se ajuste a mis necesidades.

Esperando que solucionen este problema, reciban un cordial saludo.

So this might be the time for all of us to write a letter to prosegur demanding they bring back the API 😦

@wilotas “final” fix will come in 2025.3.0

blocking the User-Agent (especially ONLY home assistant) is a signal that they are concerned with this project alone and I think the best would be a meeting between sides to reach a compromise on how to keep this integration working.

They can block us through other means (I will not discuss those here), making the user-agent user defined will not solve.

My reading of the matter is that they were actually soft in blocking us based on the User-Agent.

I would not like to escalate things more, I’m a happy costumer and would like to keep things as they were, looking for cooperation not a fight.

Cooperation would be the best solution for both parties. Prevents the cat and mouse game and can be more secure and cost efective for the company (by using streaming APIs or a more adequate pooling interval, for example). Those here that are clients, should try to push for a dialog with that goal. If that can’t be archived, the option becames to start looking for alternative companies that have better integration policies.

Any such fix would become a cat and mouse game, because next week they would block something else

We need to get them to acknowledge our customer need to use Prosegur platform through home assistant

I sent it to @.***

El jue, 20 feb 2025, 19:48, Morgoth67 @.***> escribió:

This is the message I just sent to their Spanish customer support:

Estimados señores. En los últimos años he venido empleando la integración “Prosegur Alarmas” del software de gestión domótica Home Assistant para integrar mi alarma dentro del mismo. Así, puedo monitorizar el estado de mi alarma, activar o desactivarla, y obtener imágenes de las cámaras, con completo éxito y sin ningún problema. Sin embargo, en el día de hoy, debido a un cambio activo por parte de Prosegur, dicha integración ha dejado de funcionar. Puesto en contacto con el desarrollador de esta integración y con otros usuarios afectados, vemos que el API que esta integración emplea para comunicar con la alarma (empleando mi usuario y contraseña) se ha bloqueado para el User Agent empleado por Home Assistant sin ningún motivo o explicación. Para mi, esta integración es fundamental y una característica imprescindible para mi sistema de alarma doméstico. En caso de que no reviertan la situación a su estado anterior me veré obligado a buscar otro proveedor de alarma que se ajuste a mis necesidades. Esperando que solucionen este problema, reciban un cordial saludo.

Same error here. I can`t find the Spanish customer support email address. Can you please provide it so that I can also send this same message to prosegur?

Thanks in advance.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/138942#issuecomment-2672386466, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACHLVLAB4FTMED73BF5ODD2QYPQBAVCNFSM6AAAAABXRCKKMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZSGM4DMNBWGY . You are receiving this because you are subscribed to this thread.Message ID: @.***> [image: Morgoth67]Morgoth67 left a comment (home-assistant/core#138942) https://github.com/home-assistant/core/issues/138942#issuecomment-2672386466

This is the message I just sent to their Spanish customer support:

Estimados señores. En los últimos años he venido empleando la integración “Prosegur Alarmas” del software de gestión domótica Home Assistant para integrar mi alarma dentro del mismo. Así, puedo monitorizar el estado de mi alarma, activar o desactivarla, y obtener imágenes de las cámaras, con completo éxito y sin ningún problema. Sin embargo, en el día de hoy, debido a un cambio activo por parte de Prosegur, dicha integración ha dejado de funcionar. Puesto en contacto con el desarrollador de esta integración y con otros usuarios afectados, vemos que el API que esta integración emplea para comunicar con la alarma (empleando mi usuario y contraseña) se ha bloqueado para el User Agent empleado por Home Assistant sin ningún motivo o explicación. Para mi, esta integración es fundamental y una característica imprescindible para mi sistema de alarma doméstico. En caso de que no reviertan la situación a su estado anterior me veré obligado a buscar otro proveedor de alarma que se ajuste a mis necesidades. Esperando que solucionen este problema, reciban un cordial saludo.

Same error here. I can`t find the Spanish customer support email address. Can you please provide it so that I can also send this same message to prosegur?

Thanks in advance.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/138942#issuecomment-2672386466, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACHLVLAB4FTMED73BF5ODD2QYPQBAVCNFSM6AAAAABXRCKKMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZSGM4DMNBWGY . You are receiving this because you are subscribed to this thread.Message ID: @.***>