Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Charging suerce priority Axpert #159

Open
Pokornypetr opened this issue Nov 7, 2024 · 0 comments
Open

Charging suerce priority Axpert #159

Pokornypetr opened this issue Nov 7, 2024 · 0 comments

Comments

@Pokornypetr
Copy link

Hello, please help to create a switch or something to control the battery charging source for the axpert inverter. I need, for example, automation in HA to switch between recharging from the distributor's network in a low tariff and pure solar energy. at the same time, I would like to be able to change the "Back to Discharge Voltage" setting from full to 26v as it is possible in the Watch power application. thank you very much for your help. I tried to edit the code and try your changes from the last time I used it from you, but I can't add the SELECT section: it says Platform not found: 'select.pipsolar'.`esphome:
name: "prevodnik-axpert"

esp8266:
board: d1_mini

Enable logging

logger:
level: DEBUG

Don't write log messages to UART0 (GPIO1/GPIO3) if the inverter is connected to GPIO1/GPIO3

baud_rate: 0

uart:
id: Axpert
baud_rate: 2400
tx_pin: GPIO4
rx_pin: GPIO5
debug:
direction: BOTH
dummy_receiver: false
after:
delimiter: "\r"
sequence:
- lambda: UARTDebug::log_string(direction, bytes);

Enable Home Assistant API

api:

ota:

  • platform: esphome
    id: my_ota
    password: "petolinet"

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password

Enable fallback hotspot (captive portal) in case wifi connection fails

ap:
ssid: "Pevodnik-axpert"
password: ""

Optional manual IP

manual_ip:
static_ip: 192.168.100.30
gateway: 192.168.100.1
subnet: 255.255.255.0

time:

  • platform: homeassistant
    id: homeassistant_time
  • platform: sntp
    id: my_time

mqtt:
broker: !secret mqtt_host
username: !secret mqtt_username
password: !secret mqtt_password
id: mqtt_client

captive_portal:

Example configuration entry

#uart:

- id: Axpert

tx_pin: GPIO4

rx_pin: GPIO5

# most devices use 2400 as baud_rate

baud_rate: 2400

substitutions:
friendly_name: "FVE Axpert"
inv_id: "inverter0"

sensor:

  • platform: total_daily_energy
    name: "Dení výroba FV axpert"
    power_id: pv_charging_power

  • platform: pipsolar
    pipsolar_id: inverter0

grid_rating_voltage:

id: inverter0_grid_rating_voltage

name: inverter0_grid_rating_voltage

grid_rating_current:

id: inverter0_grid_rating_current

name: inverter0_grid_rating_current

polozky menu

output_source_priority:
  name: "Priority zdrojů (01) - ${friendly_name}"

current_max_charging_current:

name: "Max nabíjecí proud (02) - ${friendly_name}"

battery_type:

name: "Typ baterie (05) - ${friendly_name}"

ac_output_rating_frequency:

name: "Výstupní frekvence (09) - ${friendly_name}"

current_max_ac_charging_current:

name: "Max nabíjecí proud ze sítě (11) - ${friendly_name}"

battery_bulk_voltage:

name: "Bulk napětí baterie (26) - ${friendly_name}"

battery_float_voltage:

name: "Float napětí baterie (27) - ${friendly_name}"

# QPIRI

ac_output_rating_apparent_power:

name: "Jmenovitý zdánlivý výkon výstupu - ${friendly_name}"

ac_output_rating_active_power:

name: "Jmenovitý činný výkon výstupu - ${friendly_name}"

battery_rating_voltage:
  name: "Jmenovité napětí baterie - ${friendly_name}"

battery_recharge_voltage:

name: "Napětí pro dobíjení baterie - ${friendly_name}"

battery_under_voltage:

name: "Min napětí baterie - ${friendly_name}"

charger_source_priority:
  name: "Priorita zdroje nabíjení - ${friendly_name}"

output_mode:

name: "Výstupní režim - ${friendly_name}"

battery_redischarge_voltage:

name: "Napětí pro opětovné vybití baterie - ${friendly_name}"

pv_power_balance:

name: "Režim vyvážení FV výkonu - ${friendly_name}"

# QPIGS
#grid_voltage:
## name: "Napětí sítě - ${friendly_name}"
#grid_frequency:
#  name: "Frekvence sítě - ${friendly_name}"
#ac_output_voltage:
#  name: "Výstupní napětí - ${friendly_name}"
#ac_output_frequency:
#  name: "Výstupní frekvence - ${friendly_name}"
#ac_output_apparent_power:
#  name: "Zdánlivý výkon výstupu - ${friendly_name}"
ac_output_active_power:
  id: ac_output_active_power
  name: "Činný výkon výstupu - ${friendly_name}"
output_load_percent:
  name: "Zatížení výstupu - ${friendly_name}"
battery_voltage:
  name: "Napětí baterie - ${friendly_name}"
battery_charging_current:
  name: "Nabíjecí proud baterie - ${friendly_name}"
battery_capacity_percent:
  name: "Kapacita baterie - ${friendly_name}"

inverter_heat_sink_temperature:

name: "Teplota chladiče invertoru - ${friendly_name}"

pv_input_current_for_battery:
  name: "FV vstupní proud do baterie - ${friendly_name}"
pv_input_voltage:
  name: "FV napětí - ${friendly_name}"
#battery_voltage_scc:
#  name: "Napětí baterie z SCC - ${friendly_name}"
battery_discharge_current:
  name: "Vybíjecí proud baterie - ${friendly_name}"
#eeprom_version:
#  name: "Verze eeprom - ${friendly_name}"
pv_charging_power:
  name: "FV nabíjecí výkon - ${friendly_name}"
  id: pv_charging_power

text_sensor:

  • platform: pipsolar
    pipsolar_id: inverter0
    device_mode:
    name: "Režim invertoru - ${friendly_name}"

binary_sensor:

  • platform: pipsolar
    pipsolar_id: inverter0

polozky z menu

overload_restart_function:

name: "Restartování po přetížení (06) - ${friendly_name}"

over_temperature_restart_function:

name: "Restart po přehřátí (07) - ${friendly_name}"

backlight_on:

name: "Podsvícení LCD (20) - ${friendly_name}"

alarm_on_when_primary_source_interrupt:

name: "Pípnutí pokud došlo k výpadku primárního zdroje (22) - ${friendly_name}"

add_sbu_priority_version:

name: "Přidat verzi priority SBU - ${friendly_name}"

configuration_status:

name: "Stav konfigurace - ${friendly_name}"

scc_firmware_version:

name: "Verze firmwaru SCC - ${friendly_name}"

load_status:

name: "Stav zatížení - ${friendly_name}"

battery_voltage_to_steady_while_charging:

name: "Napětí baterie se během nabíjení ustálí"

charging_status:

name: "Stav nabíjení - ${friendly_name}"

scc_charging_status:

name: "Stav nabíjení SCC - ${friendly_name}"

ac_charging_status:

name: "Stav nabíjení AC - ${friendly_name}"

charging_to_floating_mode:

name: "Nabíjení FLOAT - ${friendly_name}"

switch_on:

name: "Inveter zapnout - ${friendly_name}"

silence_buzzer_open_buzzer:

name: "Zap/Vyp bzučák - ${friendly_name}"

overload_bypass_function:

name: "Funkce bypassu přetížení - ${friendly_name}"

lcd_escape_to_default:

name: "LCD escape do výchozího nastavení - ${friendly_name}"

output:

  • platform: pipsolar
    pipsolar_id: inverter0
    charger_source_priority:
    possible_values:
    • 0
    • 1
    • 2
    • 3
      id: inverter0_charger_source_priority_select
      switch:
  • platform: pipsolar
    pipsolar_id: inverter0
    output_source_priority_utility:
    name: "Režim USB - ${friendly_name}"
    output_source_priority_solar:
    name: "Režim SOL - ${friendly_name}"
    output_source_priority_battery:
    name: "Režim SBU - ${friendly_name}"
    input_voltage_range:
    name: "Rozsah vstupního napětí - ${friendly_name}"

pv_ok_condition_for_parallel:

name: " FV ok pro paralelní chod - ${friendly_name}"

pv_power_balance:
  name: "Vyvážení výkonu FV - ${friendly_name}"

select:

  • platform: pipsolar
    pipsolar_id: inverter0
    output_source_priority:
    id: inverter0_output_source_priority_select
    name: inverter0_output_source_priority_select
    optionsmap:
    "Utility first": "POP00"
    "Solar only": "POP01"
    "Solar Battery Utility": "POP02"
    statusmap:
    "0": "Utility first"
    "1": "Solar only"
    "2": "Solar Battery Utility"

  • platform: pipsolar
    pipsolar_id: inverter0
    charging_discharging_control:

    See MAX_Communication_Protocol_20200526.pdf page 18

    name: "${name} charging discharging control"
    optionsmap:
    "111": "PBATCD111"
    "011": "PBATCD011"
    "101": "PBATCD101"
    "110": "PBATCD110"
    "010": "PBATCD010"
    "100": "PBATCD100"
    "001": "PBATCD001"
    "000": "PBATCD000"
    statusmap:
    "111": "111"
    "011": "011"
    "101": "101"
    "110": "110"
    "010": "010"
    "100": "100"
    "001": "001"
    "000": "000"

  • platform: pipsolar
    pipsolar_id: inverter0
    charger_source_priority:
    name: ${name} charger_source_priority_select
    optionsmap:

"Utility first": "PCP00"

    "Solar first": "PCP01"
    "Solar and utility": "PCP02"
    "Solar charging only": "PCP03"
  statusmap:

"0": "Utility first"

    "1": "Solar first"
    "2": "Solar and utility"
    "3": "Solar charging only"
  • platform: pipsolar
    pipsolar_id: inverter0
    current_max_ac_charging_current:
    name: ${name} current_max_ac_charging_current_select
    optionsmap:
    "2A": "MUCHGC0002"
    "10A": "MUCHGC0010"
    "20A": "MUCHGC0020"
    "30A": "MUCHGC0030"
    "40A": "MUCHGC0040"
    "50A": "MUCHGC0050"
    "60A": "MUCHGC0060"
    "70A": "MUCHGC0070"
    "80A": "MUCHGC0080"
    "90A": "MUCHGC0090"
    "100A": "MUCHGC0100"
    "110A": "MUCHGC0110"
    "120A": "MUCHGC0120"
    statusmap:
    "2": "2A"
    "10": "10A"
    "20": "20A"
    "30": "30A"
    "40": "40A"
    "50": "50A"
    "60": "60A"
    "70": "70A"
    "80": "80A"
    "90": "90A"
    "100": "100A"
    "110": "110A"
    "120": "120A"

  • platform: pipsolar
    pipsolar_id: inverter0
    current_max_charging_current:
    name: ${name} current_max_charging_current_select
    optionsmap:
    "10A": "MCHGC010"
    "20A": "MCHGC020"
    "30A": "MCHGC030"
    "40A": "MCHGC040"
    "50A": "MCHGC050"
    "60A": "MCHGC060"
    "70A": "MCHGC070"
    "80A": "MCHGC080"
    "90A": "MCHGC090"
    "100A": "MCHGC100"
    "110A": "MCHGC110"
    "120A": "MCHGC120"
    statusmap:
    "10": "10A"
    "20": "20A"
    "30": "30A"
    "40": "40A"
    "50": "50A"
    "60": "60A"
    "70": "70A"
    "80": "80A"
    "90": "90A"
    "100": "100A"
    "110": "110A"
    "120": "120A"
    pipsolar:

  • uart_id: Axpert
    id: inverter0
    update_interval: 10s

Example configuration entry

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant