Skip to content

Battery threshold not quite working right #72

Description

@gcoan

Three inverters, one charging at 56W, a nominal charge amount when its set to pause charge mode:

image

This all looks correct.

If I change the threshold to 60W:

image

The overall battery correctly shows as not charging, and the individual battery is greyed out, but still shows the 0.1kW charging which I don't think it should be.

yaml:

type: custom:compact-power-card
threshold_mode: calculations
subtract_devices_from_home: false
curve_factor: 3.5
power_unit: kW
entities:
  pv:
    entity: sensor.total_solar_power
    threshold: 50
    labels:
      - entity: sensor.h_sd2237g395_pv_power
        threshold: 50
        icon: mdi:solar-power
        name: H
      - entity: sensor.fit_solar_power
        threshold: 50
        icon: mdi:solar-power
        name: FIT
      - entity: sensor.g_sd2237g182_pv_power
        threshold: 50
        icon: mdi:solar-power
        name: G
  home: {}
  grid:
    entity: sensor.g_sd2237g182_grid_power
    threshold: 50
    labels:
      - entity: sensor.g_sd2237g182_grid_voltage
      - entity: predbat.rates
        icon: mdi:currency-gbp
        unit: p/kWh
  devices:
    - entity: sensor.ashp_power
      icon: mdi:heat-pump-outline
      threshold: 50
      name: ASHP
      force_hide_under_threshold: true
    - entity: sensor.extension_power
      threshold: 50
      name: Extension
    - entity: sensor.workshop_power
      threshold: 50
      force_hide_under_threshold: true
      name: Workshop
    - entity: sensor.tumble_dryer_power
      threshold: 50
      force_hide_under_threshold: true
      name: Tumble
    - entity: sensor.horse_shed_heater_power
      threshold: 50
      force_hide_under_threshold: true
      name: Horse Shed
    - entity: sensor.cooker_power
      icon: mdi:stove
      threshold: 50
      force_hide_under_threshold: true
      name: Cooker
    - entity: sensor.dishwasher_power
      icon: mdi:dishwasher
      threshold: 50
      force_hide_under_threshold: true
      name: DishW
    - entity: sensor.washing_machine_power
      icon: mdi:washing-machine
      threshold: 50
      force_hide_under_threshold: true
      name: Wash M
    - entity: sensor.kettle_power
      threshold: 50
      name: Kettle
      force_hide_under_threshold: true
    - entity: sensor.hot_tub_power
      icon: mdi:hot-tub
      name: Hot Tub
      threshold: 50
      force_hide_under_threshold: true
  battery:
    - entity: sensor.g_sd2237g182_battery_power
      battery_soc: sensor.g_sd2237g182_soc
      battery_capacity: 12.4
      show_soc: true
      threshold: 50
    - entity: sensor.h_sd2237g395_battery_power
      battery_soc: sensor.h_sd2237g395_soc
      battery_capacity: 9.5
      show_soc: true
      threshold: 50
    - entity: sensor.i_ce2218g352_battery_power
      battery_soc: sensor.i_ce2218g352_soc
      battery_capacity: 8.2
      show_soc: true
      threshold: 60
  battery_labels:
    - entity: predbat.best_charge_start
      unit: next charge
    - entity: predbat.battery_hours_left
      decimal_places: 1
      unit: hours left
grid_options:
  columns: 12
  rows: 4.2
curved_lines: true
enable_device_power_lines: false
hide_card_background: false
remove_glow_effects: false
disable_home_gradient: false

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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