#🤔 Need Help: API Blocking Issue with Custom Integration

1 messages · Page 1 of 1 (latest)

clear depot
#

I'm developing a Home Assistant integration for oplaadpalen.nl
(Dutch EV charging stations API) and hitting two issues:

Issue #1: API Blocking from Containers/VMs

• On my Mac (local Python): The WMS API works fine ✅
Returns 1 charging station as expected

• From Home Assistant containers/VMs: The same API call
returns 0 results ❌

  • Docker on Mac: 0 results
  • Docker with --net=host: 0 results
  • Home Assistant OS VM: 0 results

• All on the same network, same ISP

What I've tried:
✓ User-Agent headers (v0.1.2)
✓ Host networking mode
✓ Different coordinates
✓ Library works correctly (it's not a code issue)

Test Code (for reference):

import asyncio
from oplaadpalen_py.client import OplaadpalenClient

async def test():
    async with OplaadpalenClient() as client:
        stations = await client.get_charging_stations(52.3737, 4.8885, 5.0)
        print(f'Found: {len(stations)} stations')

asyncio.run(test())

Issue #2: Dependency Installation Not Working

I have requirements properly declared in manifest.json:

"requirements": [
    "geopy>=2.3.0",
    "oplaadpalen-py>=0.1.0"
]

However, on Home Assistant OS, the dependencies are NOT being
auto-installed when the integration is deployed via HACS,
requiring manual pip install.

Questions:
• Is there a specific format/version requirement for manifest.json
that enables automatic pip installation?
• Is this a known HAOS limitation with custom integrations?
• Should I add the homeassistant version requirement differently?
• Any workarounds for ensuring deps are installed?


Theories on API Issue:

  • Geographic IP blocking?
  • ISP-level filtering?
  • API provider blocking cloud/container IPs?

Repository: https://github.com/willumpie82/oplaadpalen_homeassistant

Any input on either issue appreciated! 🙏

GitHub

Home Assistant integration for monitoring EV charging stations from oplaadpalen.nl - willumpie82/oplaadpalen_homeassistant

cobalt hearth
#

Self-assign the Developer role in id:customize and you will get access to the dev channels.

clear depot
#

should I repost my question in a more appropriate section?