syssi / homeassistant-goecharger-mqtt

go-eCharger integration for Home Assistant using the MQTT API
Apache License 2.0
75 stars 17 forks source link

pAkku, pGrid, pPv sensors shown as "unavailable" #126

Closed parkflyer closed 6 months ago

parkflyer commented 6 months ago

I have added this automation:

alias: go-e Surplus Charging
description: >-
  Simple automation to update values needed for using solar surplus with go-e
  Chargers
trigger:
  - platform: time_pattern
    seconds: /5
condition: []
action:
  - service: mqtt.publish
    data:
      qos: "0"
      topic: go-eCharger/<go-e ID>/ids/set
      payload: >-
        {"pGrid":{{states("sensor.amis_power_saldo_w")}},"pPv":{{states("sensor.deye_modbus_sun12k_battery_output_power")}},"pAkku":
        0}
      retain: false

Then I wanted to check if everything is working correctly. But the sensors pAkku, pGrid and pPv are shown as "unavailable" ("nicht verfügbar"). grafik Connection is generally OK and most sensors show data ("Charging energy limit" e.g. is also deactivated), fup is set to true and lmo to "Eco mode". Currently the grid saldo is positive (buying energy, no surplus) and the car is not connected. Could this be the problem?

Thank you, parkflyer

ville-juhani-honka commented 6 months ago

Same issue here. I just started to use this integration and otherwise I got things to work (I see and write values to/from the charger), but these 3 sensors are unavailable. And no matter what I do, I can't write any of these values from HA to the charger using mqtt:publish. The values keep saying "null" at the charger end.

I'm using a brand new Gemini, which I first updated to 55.7 and now 55.8 beta.

EDIT: I take my above comment back. I had to have something wrong in my payload in mqtt.publish. It looks like that it works now: when the charger gets the pGrid, pPv and pAkku values, the sensors become available and start to show values in HA.

However, I still get null if I query e.g.: http://192.168.0.XXX/api/status?filter=pGrid

parkflyer commented 6 months ago

Got it working (I think the problem was already mentioned somewhere else). The topic is: topic: /go-eCharger/<go-e ID>/ids/set and not topic: go-eCharger/<go-e ID>/ids/set Works for me now.

Hope this helps, parkflyer