Skip to content

Error connecting to BATE-xxxxx-IURQM, Only JSON supported #4

Open
@mabusdogma

Description

@mabusdogma

Hello and thank you for working on this.
I'm trying to use the X5 camera to get it I to home assistant, locally.
I installed the integration via HACS and got the local up in my router (the camera is called Iwip)
Without username and password, or using admin:6666, I'm able to connect, but an error arise.
Can I do something to make it work?
Regards,

Error setting up entry BATE-xxxxx-IURQM for pppp_camera
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 753, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/pppp_camera/__init__.py", line 30, in async_setup_entry
    await device.async_setup()
  File "/config/custom_components/pppp_camera/device.py", line 87, in async_setup
    async with self.ensure_connected():
               ~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
    return await anext(self.gen)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/pppp_camera/device.py", line 121, in ensure_connected
    await self.connect()
  File "/config/custom_components/pppp_camera/device.py", line 66, in connect
    await self.device.connect()
  File "/usr/local/lib/python3.13/site-packages/aiopppp/device.py", line 56, in connect
    self._session = make_session(
                    ~~~~~~~~~~~~^
        device=self.descriptor,
        ^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
        on_device_lost=lambda dev: self.on_device_lost(),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiopppp/session.py", line 523, in make_session
    raise NotImplementedError("Only JSON protocol is supported")
NotImplementedError: Only JSON protocol is supported 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions