[Docker Container] Predbat PHEV Shelly/Agile Octopus Charging Automation

Hi all

First time caller, so go easy on me!

I deployed a Predbat/GivTCP/Agile Octopus automation through a Docker container running on my UGREEN NAS. The inverter control is up and running, so all is well on that side of things.

To avoid conflicts with a seperate automation that I deployed on my RPi4 to identify the cheapest Agile rates overnight to charge my XC40 by controlling a Shelly UK Plug, I looked into creating an automation using Predbat but I have run into some issues getting it up and running. Ultimately, I want to make sure that I don’t use valuable charge from my battery to move it into my car battery, as I want to export it for 12p per kWh.

The main issue seems to be the apps.yaml code and even using the dreaded A.I to sense check it for me, I can’t get the automation to work.

Any troublshooting support would be apprecaited.

pred_bat:
  module: predbat
  class: PredBat
  prefix: predbat
  timezone: Europe/London

  # --- Car Configuration (Zero-Bracket Format) ---
  num_cars: 1
  ev_capacity: 10.7
  car_charging_rate: 2.3
  car_charging_soc: input_number.volvo_manual_soc
  car_charging_limit: input_number.volvo_charge_limit
  car_charging_plan_time: input_datetime.volvo_ready_time
  car_charging_plugged_in: input_boolean.volvo_plugged_in
  charger_id: switch.shelly_uk_plug_ev_charger_control

Thanks, Iain