Skip to content

Home Assistant access: 403 Client Error: Forbidden for url: http://... #223

@DukeMini

Description

@DukeMini

Der Zugriff auf die HA-API funktioniert nicht. Token ist eingerichtet und nach einer De-Installation und anschließender Neuinstallation hat es auch einmal funktioniert. Bei späteren Reboots/Neustarts jedoch nicht mehr.

Ich habe zum Testen auch einmal die Konfig für Batterien auf default gesetzt, damit nur "LOAD-IF" auf HA zugreift. Zudem mal den Token bei der Batterie entfernt und nur beim LOAD stehen lassen. Es bleibt immer beim Err 403.

2026-03-13 14:12:34 DEBUG [LOAD-IF] Initializing LoadInterface with source: homeassistant
2026-03-13 14:12:34 DEBUG [LOAD-IF] Using URL: http://192.168.200.250:8123
2026-03-13 14:12:34 DEBUG [LOAD-IF] Using access token: <myAccessToken>
2026-03-13 14:12:34 DEBUG [LOAD-IF] Config check successful using 'homeassistant'
2026-03-13 14:12:34 INFO [BATTERY-PRICE] Dynamic price calculation enabled (Interval: 900s, Lookback: 96h)
2026-03-13 14:12:34 INFO [BATTERY-IF] Update service started.
2026-03-13 14:12:34 INFO [PRICE-IF] Initialized with source: default, feed_in_tariff_price: 0.079, negative_price_switch: False
2026-03-13 14:12:34 DEBUG [PRICE-IF] Fetching prices from akkudoktor ...
2026-03-13 14:12:34 DEBUG [PRICE-IF] Requesting prices from akkudoktor: https://api.akkudoktor.net/prices?start=2026-03-13&end=2026-03-14
2026-03-13 14:12:34 INFO [PRICE-IF] Background price update service started
2026-03-13 14:12:34 DEBUG [PV-IF] Initializing with 1st source: akkudoktor
2026-03-13 14:12:34 DEBUG [PV-IF] Using default temperature forecast with 15 degrees
2026-03-13 14:12:34 DEBUG [PV-IF] Initialize - pv entries found: 1
2026-03-13 14:12:34 DEBUG [PV-IF] Initialize - config entry name: roof_south
2026-03-13 14:12:34 INFO [PV-IF] Configuration validation successful
2026-03-13 14:12:34 INFO [PV-IF] Initialized
2026-03-13 14:12:34 DEBUG [PV-IF] fetching forecast for 'roof_south'
2026-03-13 14:12:34 INFO [PV-IF] Update service started.
2026-03-13 14:12:34 INFO [Main] Waiting 4 seconds for interfaces to initialize
2026-03-13 14:12:34 WARNING [BATTERY-IF] HOMEASSISTANT - Error fetching battery SOC: 403 Client Error: Forbidden for url: http://192.168.200.250:8123/api/states/sensor.rct_power_storage_battery_state_of_charge. Failure count: 1/5. Using last known SOC = 0%.
2026-03-13 14:12:34 DEBUG [BATTERY-IF] successfully fetched SOC = 0 %
2026-03-13 14:12:34 DEBUG [BATTERY-IF] Error fetching temperature (attempt 1/5): 403 Client Error: Forbidden for url: http://192.168.200.250:8123/api/states/sensor.rct_power_storage_battery_temperature

Meine Konfiguration siehr folgendermaßen aus. Die Token sind identisch.

load:
  source: homeassistant
  url: http://192.168.200.250:8123
  access_token: >-
    <myAccessToken>
  load_sensor: sensor.stromzaehler_leistung_aktuell
  car_charge_load_sensor: sensor.wallbox_leistung_aktuell
  additional_load_1_sensor: ""
  additional_load_1_runtime: 0
  additional_load_1_consumption: 0

[...]

battery:
  source: homeassistant
  url: http://192.168.200.250:8123
  soc_sensor: sensor.rct_power_storage_battery_state_of_charge
  access_token: >-
    <myAccessToken>
  capacity_wh: 11500
  charge_efficiency: 0.96

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