evcc icon indicating copy to clipboard operation
evcc copied to clipboard

HA devices show disconnected even if http answers are good /depends on other devices

Open achims311 opened this issue 1 year ago • 1 comments

Describe the bug

regardless how I configure a heater in ebcc (evcc.yaml or UI), a device is considerd connected or disconnected depending on other (HA-) devices. (I just have HA-devices, nothing else). I have 2 devices during UI config, both are shown as valid, but after the restart only one is shown connected(I think always the second one).

Steps to reproduce

  1. Configure fist HA-heater (incl validation if on UI)
  2. Configure second HA-Heater (incl validation if on UI)
  3. Restart Only second heater is shown connected

Configuration details

loadpoints:
  - title: Heizung
    charger: Erbsenzaehler
    priority: 0
  - title: Geordi
    charger: AnAusSchalter
    priority: 1
    enable:
      threshold: -200
    disable:
      delay: 15m
chargers:
  - name: Erbsenzaehler
    type: template
    template: homeassistant-switch
    uri: http://homeassistant:8123
    switch: switch.erbsenzahler_hama_fur_solargenerator
    power: sensor.erbsenzahler_hama_fur_solargenerator_power
    standbypower: 1
    integrateddevice: true
    icon: heater
  - name: AnAusSchalter
    type: template
    template: homeassistant-switch
    uri: http://homeassistant:8123
    switch: switch.an_aus_schalter_hama
    standbypower: -60 
    integrateddevice: true 
    icon: heater

Log details

[ha-switch] TRACE 2025/12/04 22:09:05 GET http://homeassistant:8123/api/states/switch.erbsenzahler_hama_fur_solargenerator
[ha-switch] TRACE 2025/12/04 22:09:05 {"entity_id":"switch.erbsenzahler_hama_fur_solargenerator","state":"off","attributes":{"device_class":"outlet","friendly_name":"Erbsenzähler Hama für Solargenerator"},"last_changed":"2025-12-04T19:21:29.763286+00:00","last_reported":"2025-12-04T19:21:29.763286+00:00","last_updated":"2025-12-04T19:21:29.763286+00:00","context":{"id":"01KBNCZYD3ASNT00ZWGH8ZFHS8","parent_id":null,"user_id":null}}
[ha-switch] TRACE 2025/12/04 22:09:05 GET http://homeassistant:8123/api/states/switch.an_aus_schalter_hama
[ha-switch] TRACE 2025/12/04 22:09:05 {"entity_id":"switch.an_aus_schalter_hama","state":"off","attributes":{"device_class":"outlet","friendly_name":"An/Aus Schalter Hama"},"last_changed":"2025-12-04T20:13:55.773677+00:00","last_reported":"2025-12-04T20:13:55.773677+00:00","last_updated":"2025-12-04T20:13:55.773677+00:00","context":{"id":"01KBNFZYNXHMK2Q64AQFEYQ5FM","parent_id":null,"user_id":null}}
[ha-switch] TRACE 2025/12/04 22:09:05 GET http://homeassistant:8123/api/states/switch.an_aus_schalter_hama
[ha-switch] TRACE 2025/12/04 22:09:05 GET http://homeassistant:8123/api/states/sensor.erbsenzahler_hama_fur_solargenerator_power
[ha-switch] TRACE 2025/12/04 22:09:05 {"entity_id":"switch.an_aus_schalter_hama","state":"off","attributes":{"device_class":"outlet","friendly_name":"An/Aus Schalter Hama"},"last_changed":"2025-12-04T20:13:55.773677+00:00","last_reported":"2025-12-04T20:13:55.773677+00:00","last_updated":"2025-12-04T20:13:55.773677+00:00","context":{"id":"01KBNFZYNXHMK2Q64AQFEYQ5FM","parent_id":null,"user_id":null}}
[ha-switch] TRACE 2025/12/04 22:09:05 {"entity_id":"sensor.erbsenzahler_hama_fur_solargenerator_power","state":"0.0","attributes":{"state_class":"measurement","unit_of_measurement":"W","device_class":"power","friendly_name":"Erbsenzähler Hama für Solargenerator Power"},"last_changed":"2025-12-04T19:21:29.756206+00:00","last_reported":"2025-12-04T19:21:29.756206+00:00","last_updated":"2025-12-04T19:21:29.756206+00:00","context":{"id":"01KBNCZYCWBA5ZSK7A8KTCCPHF","parent_id":null,"user_id":null}}
[ha-switch] TRACE 2025/12/04 22:09:07 GET http://homeassistant:8123/api/states/switch.erbsenzahler_hama_fur_solargenerator
[ha-switch] TRACE 2025/12/04 22:09:07 {"entity_id":"switch.erbsenzahler_hama_fur_solargenerator","state":"off","attributes":{"device_class":"outlet","friendly_name":"Erbsenzähler Hama für Solargenerator"},"last_changed":"2025-12-04T19:21:29.763286+00:00","last_reported":"2025-12-04T19:21:29.763286+00:00","last_updated":"2025-12-04T19:21:29.763286+00:00","context":{"id":"01KBNCZYD3ASNT00ZWGH8ZFHS8","parent_id":null,"user_id":null}}

What type of operating system or environment does evcc run on?

HomeAssistant Add-on

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [x] I have verified that the issue is reproducible with the latest nightly build

Version

evcc version 0.211.0 (f2647cdb4)

achims311 avatar Dec 04 '25 21:12 achims311

Logfile doesn‘t show any error.

Unfortunately your report is missing a detailed log file. Without log, we don‘t have the information for diagnosing the issue described. See https://docs.evcc.io/docs/faq#wie-kann-ich-ein-logfile-zur-fehleranalyse-erstellen.

andig avatar Dec 05 '25 05:12 andig