----file:config.json { "params" : { "title" : "Die Wallbox von Uta & Michael", "desc" : "Standard-Konfiguration", "max_total_cur_prc" : 100, "max_total_current" : 20000, "reserve_current" : 0, "max_overdraft_cur" : 0, "max_total_evse_current" : 48000, "cons_pwr" : 2188, "prod_pwr" : 2732, "error_pwr" : 0, "grid_pwr" : -544, "storage_home" : 0, "storage_all" : 0, "cons_evse_power" : 0, "avail_evse_power" : 14344, "surplus_power" : 544, "cur_overdraft" : 0, "lb_enabled" : true, "disable_policy" : 1, "max_imbalance_cur" : 20000, "imbalance_add" : true, "min_pause_time" : 300, "phase_switch_delay" : 180, "reduce_on_com_err" : true, "ocpp_srv_tls_mode" : "detect", "ocpp_srv_port" : 19520, "ocpp_srv_use_ext_cert" : false, "ocpp_srv_cert_fn" : "", "ocpp_srv_private_key_fn" : "", "ocpp_srv_cacert_fn" : [ ], "ocpp_srv_password" : "", "price_model" : 0, "fixed_price" : 0, "lm_mqtt_broker_url" : "", "mqtt_publish_dev_info" : false, "mqtt_publish_params" : false, "mqtt_dev_ctl" : false, "api_mqtt_broker_url" : "", "start_ta_on_charging" : false, "last_budget_reset" : 195, "surplus_expr" : "", "cm_flags" : 0, "cycle_time" : 3014, "max_evses" : 3, "shareware_mode" : false, "license_end" : 0, "real_evses" : 0, "real_evses_dis" : 0, "version" : "2.1.8-beta", "time" : 1720865306, "vsn" : { "vendorid" : 52997, "version" : 33630076, "productid" : 1, "serialno" : "W00-04PM", "platform" : "esp32" }, "cpu" : 17, "mem" : 50, "cm_vars" : { "vars" : [ { "name" : "test1", "expr" : 0, "val" : 0, "mode" : 0, "tdur" : 0 } ] }, "cm_outs" : [ ] }, "users" : [ { "id" : "234525112643", "name" : "Fahrer", "display" : true, "show_evse" : true, "rfids" : [ ], "charging_rules" : [ { "udur" : 0, "id" : 0, "days" : 127, "ctype" : 1, "atype" : 10, "ena" : true, "flags" : 2, "cexpr" : 6000, "aexpr" : 1 } ] } ], "devices" : [ { "dev_type" : "meter_virtual_surplus", "device_enabled" : true, "name" : "solarer Ãœberschuß", "address" : "", "id" : 1, "dev_id" : "M8", "number" : 16, "desc" : "solarer Ãœberschuß", "is_evse" : false, "is_virtual" : true, "used_phases" : 7, "keep_connection" : false, "hproxy_allow" : false, "hproxy_alternate" : false, "enable_history" : true, "hide_dev" : false, "show_in_overview" : true, "show_chart_in_dev_info" : false, "show_chart_in_overview" : true, "mqtt_publish_dev_info" : false, "sunspec_publish_dev_info" : false, "role" : 0, "factor" : 1 }, { "dev_type" : "meter_virtual_consumed_power", "device_enabled" : true, "name" : "Haus", "address" : "", "id" : 1, "dev_id" : "M7", "number" : 20, "desc" : "Hausverbrauch", "is_evse" : false, "is_virtual" : true, "used_phases" : 7, "keep_connection" : false, "hproxy_allow" : false, "hproxy_alternate" : false, "enable_history" : true, "hide_dev" : false, "show_in_overview" : true, "show_chart_in_dev_info" : false, "show_chart_in_overview" : true, "mqtt_publish_dev_info" : false, "sunspec_publish_dev_info" : false, "role" : 0, "factor" : 1 }, { "dev_type" : "meter_LG_Battery", "device_enabled" : true, "name" : "RESU12", "address" : "192.168.178.46:1502", "id" : 1, "dev_id" : "M6", "number" : 10, "desc" : "SE RESU12 Battery", "is_evse" : false, "is_virtual" : false, "used_phases" : 7, "keep_connection" : true, "hproxy_allow" : false, "hproxy_alternate" : false, "enable_history" : true, "hide_dev" : false, "show_in_overview" : true, "show_chart_in_dev_info" : false, "show_chart_in_overview" : true, "mqtt_publish_dev_info" : false, "sunspec_publish_dev_info" : false, "role" : 5, "factor" : 1 }, { "dev_type" : "meter_SE10K-RWS_PAC+Bat_rUIP", "device_enabled" : true, "name" : "SolarEdge Wechselrichter", "address" : "192.168.178.46:1502", "id" : 1, "dev_id" : "M5", "number" : 4, "desc" : "SolarEdge Wechselrichter", "is_evse" : false, "is_virtual" : false, "used_phases" : 7, "keep_connection" : true, "hproxy_allow" : false, "hproxy_alternate" : false, "enable_history" : true, "hide_dev" : false, "show_in_overview" : true, "show_chart_in_dev_info" : false, "show_chart_in_overview" : true, "mqtt_publish_dev_info" : false, "sunspec_publish_dev_info" : false, "role" : 2, "factor" : 1 }, { "dev_type" : "meter_Solaredge_grid_rUIP", "device_enabled" : true, "name" : "SolarEdge Grid-meter", "address" : "192.168.178.46:1502", "id" : 1, "dev_id" : "M4", "number" : 7, "desc" : "SolarEdge Netzzähler", "is_evse" : false, "is_virtual" : false, "used_phases" : 7, "keep_connection" : true, "hproxy_allow" : false, "hproxy_alternate" : false, "enable_history" : true, "hide_dev" : false, "show_in_overview" : true, "show_chart_in_dev_info" : false, "show_chart_in_overview" : true, "mqtt_publish_dev_info" : false, "sunspec_publish_dev_info" : false, "role" : 3, "factor" : -1 }, { "dev_type" : "meter_dem4a", "device_enabled" : true, "name" : "Wallbox Zähler", "address" : "meter3", "id" : 101, "dev_id" : "M3", "number" : 4, "desc" : "cFos Power Brain, Modbus Zähler", "is_evse" : false, "is_virtual" : false, "used_phases" : 7, "keep_connection" : false, "hproxy_allow" : false, "hproxy_alternate" : false, "enable_history" : false, "hide_dev" : false, "show_in_overview" : false, "show_chart_in_dev_info" : true, "show_chart_in_overview" : false, "mqtt_publish_dev_info" : false, "sunspec_publish_dev_info" : false, "role" : 4, "factor" : 1 }, { "dev_type" : "meter_powerbrain", "device_enabled" : false, "name" : "S0 Zähler 2", "address" : "meter2", "id" : 3, "dev_id" : "M2", "number" : 3, "desc" : "cFos Power Brain, S0 Zähler 2", "is_evse" : false, "is_virtual" : false, "used_phases" : 7, "keep_connection" : false, "hproxy_allow" : false, "hproxy_alternate" : false, "enable_history" : false, "hide_dev" : false, "show_in_overview" : false, "show_chart_in_dev_info" : true, "show_chart_in_overview" : false, "mqtt_publish_dev_info" : false, "sunspec_publish_dev_info" : false, "role" : 0, "factor" : 1, "modbus" : { "enable" : false, "id" : 3, "port" : "4703" }, "pulses_per_kWh" : 0 }, { "dev_type" : "meter_powerbrain", "device_enabled" : true, "name" : "S0 Zähler 1", "address" : "meter1", "id" : 2, "dev_id" : "M1", "number" : 2, "desc" : "cFos Power Brain, S0 Zähler 1", "is_evse" : false, "is_virtual" : false, "used_phases" : 7, "keep_connection" : false, "hproxy_allow" : false, "hproxy_alternate" : false, "enable_history" : false, "hide_dev" : true, "show_in_overview" : false, "show_chart_in_dev_info" : true, "show_chart_in_overview" : false, "mqtt_publish_dev_info" : false, "sunspec_publish_dev_info" : false, "role" : 4, "factor" : 1, "modbus" : { "enable" : true, "id" : 2, "port" : "4702" }, "pulses_per_kWh" : 1000 }, { "dev_type" : "evse_powerbrain", "device_enabled" : true, "name" : "Wallbox", "address" : "evse", "id" : 1, "dev_id" : "E1", "number" : 1, "desc" : "cFos Power Brain 22kW", "is_evse" : true, "is_virtual" : false, "used_phases" : 1, "keep_connection" : false, "hproxy_allow" : false, "hproxy_alternate" : false, "enable_history" : true, "hide_dev" : false, "show_in_overview" : true, "show_chart_in_dev_info" : false, "show_chart_in_overview" : true, "mqtt_publish_dev_info" : false, "sunspec_publish_dev_info" : false, "charging_enabled_plugged_out" : true, "label" : "${USER}", "min_charging_cur" : 6000, "max_charging_cur" : 16000, "prio" : 3, "phase_rotation" : 0, "charge_ofs" : 0, "fixed_rfid" : "", "enable_wakeup" : true, "enable_snooze" : false, "battery_save_threshold" : 0, "battery_save2_threshold" : 0, "softmeter" : -1, "ocpp_gateway_server_addr" : "", "ocpp_gateway_password" : "", "ocpp_gateway_client_id" : "", "ocpp_gateway_socks_host" : "", "ocpp_gateway_socks_authentication" : 0, "ocpp_gateway_use_ext_cert" : false, "ocpp_gateway_cert_fn" : "", "ocpp_gateway_private_key_fn" : "", "ocpp_gateway_cacert_fn" : [ ], "connector0_status_is_cm" : true, "save_signed_data" : 0, "attach" : "M3", "users" : [ ], "charging_rules" : [ { "udur" : 300, "id" : 1, "days" : 127, "ctype" : 1, "atype" : 10, "ena" : true, "flags" : 18, "cexpr" : 6100, "aexpr" : 1 } ], "modbus" : { "enable" : true, "id" : 10, "port" : "4701" }, "def_charging_enable" : true, "def_charg_cur_limit" : 16000, "def_fixed_current" : 31997, "ev40_wakeup" : false, "relay_select" : 1 } ] } ----file:sys_config.json { "admin_pwd" : "achim53cpb", "license_accepted" : true, "version" : 33630076, "serialno" : "W00-04PM", "allow_usage_stats" : false, "use_ocpp_time" : false, "localhost_is_admin" : false, "socks_access" : 0, "socks_authentication" : 0, "socks_url" : "", "socks_remote_addr" : "", "socks_cert_fn" : "", "socks_private_key_fn" : "", "socks_cacerts_fn" : [ ], "socks_use_ext_certs" : false, "ui_use_ext_certs" : false, "ui_cert_fn" : "", "ui_private_key_fn" : "", "use_auth_ch" : false, "snd_cors" : false, "snd_fb_notis" : true, "tibber_token" : "", "tibber_home_id" : "", "last_noti_cleanup" : 1718963101, "com_nums" : [ "", "", "", "", "", "", "", "", "", "" ], "logging" : { "ta" : true, "custom" : true, "system" : 1, "socket" : 1, "lm" : 1, "lb" : 1, "rfid" : 1, "crules" : 1, "http" : 1, "socks" : 1, "ha" : 1, "evse" : 1, "oevse" : 1, "meter" : 1, "cloud_if" : 1, "serial" : 1, "modbus" : 1, "slip" : 1, "usb" : 1, "mesh" : 1, "mqtt" : 1, "dur" : 3600, "pb_other" : 1, "pb_wifi" : 1, "pb_cp" : 1, "log_upload" : false, "dump_upload" : false, "log_url" : "http://www.cfos-emobility.de/scripts/wb_log.jss", "dump_url" : "http://www.cfos-emobility.de/scripts/wb_log.jss", "syslog_enable" : false, "syslog_host" : "", "syslog_local_hostname" : "", "syslog_appname" : "", "syslog_mode" : 1, "syslog_port" : 0 }, "mqtt_broker_url" : "", "mqtt_topic_serial" : false, "mqtt_lg_broker_url" : "", "mqtt_talg_broker_url" : "", "sunspec_srv_addr" : "1502", "sunspec_srv_id" : 0, "proxy" : { "enable" : false, "tcp_port" : "4712", "rtu_addr" : "COM1,19200,8,N,1" }, "cloud" : { "enable" : false, "server_url" : "https://cloud.cfos-emobility.de:4443", "id" : "", "cm_pwd" : "" }, "slip" : { "mode" : 0, "address" : "COM1,921600,8,N,1", "fixedip" : "", "gateway" : "", "netmask" : "" }, "smartconfig" : { }, "easee" : { "access_token" : { "enc" : "AES256", "len" : "0", "data" : "" }, "refresh_token" : { "enc" : "AES256", "len" : "0", "data" : "" } }, "chargepoint" : { } } ----file:pb_config.json { "system" : { "log2file" : true, "log_split_size" : 100000, "log_upload_address" : "" }, "wifi" : { "ap_active" : false, "ap_ssid" : "powerbrain-W00-04PM", "ap_pwd" : "1234abcd", "ap_channel" : 0, "ap_portal" : true, "sta_active" : true, "sta_ssid" : "AREMORICA", "sta_bssid" : "", "sta_dhcp" : true, "sta_fixedip" : "", "sta_gateway" : "", "sta_netmask" : "255.255.255.0", "sta_pwd" : "9vsIoHO18hQWS7EXrgAWfw30N2lbbDC7S0mP5EwrcK89AIqMVLXNb8c9", "hotspot_active" : false, "smartcfg" : true, "dnsserver" : "8.8.8.8", "sntpserver" : "pool.ntp.org", "hostname" : "powerbrain-W00-04PM", "mesh_active" : 0, "mesh_mode" : 0, "mesh_layers" : 25, "mesh_connections" : 8, "mesh_id" : "CC-FF-00-55-00-01", "mesh_port_filter" : "" }, "meters" : [ { "pulses_per_kWh" : 1000, "input" : 1, "phases" : 7, "voltage_l1" : 230, "voltage_l2" : 230, "voltage_l3" : 230, "pulses_base" : 0, "energy_base" : 0 }, { "pulses_per_kWh" : 1000, "input" : 2, "phases" : 7, "voltage_l1" : 230, "voltage_l2" : 230, "voltage_l3" : 230, "pulses_base" : 0, "energy_base" : 0 } ], "modbus" : [ { "enable" : true, "id" : 2, "port" : "4702" }, { "enable" : false, "id" : 3, "port" : "4703" }, { "enable" : true, "id" : 10, "port" : "4701" } ], "evse" : { "enable" : true, "def_charging_enable" : true, "def_charg_cur_limit" : 16000, "def_fixed_current" : 31997, "fail_safe_duration" : 180, "fail_safe_current" : 6000, "dc_sensor_enable" : true, "relay_select" : 1 }, "rfid" : { "enable2" : true }, "firmware" : { "dl_url" : "http://www.cfos-emobility.de/powerbrain/release/LATEST" }, "time" : { "timezone" : "CET-1CEST-2,M3.5.0,M10.5.0", "cur_time" : "2024-07-13T06:57:34.930Z" } } ----file:user_meters/SolaredgeSE10K_PAC+Bat_read_UIP.json { //Diese Datei wurde geschrieben für einen Wechselrichter //Solaredge_SE10K-RWS mit über CAN angeschlossener Batterie RESU12 von LG //Am Ende der Datei wird Bezug genommen auf Werte der RESU12 Batterie //Diese hat hier die Gerätebezeichnung M6, die ggf. zu modifizieren ist //Die Datei funktioniert daher nur gemeinsam mit der Datei //meter_SE10K_LG_RESU12CANfloat32.json, die die Batteriedaten der RESU12 liest "rtype": 0, // 0 = modbus, 1 = http/json "name": "Solaredge_SE10K_PAC+Bat_rUIP", // as displayed in the config dialog "manufacturer": "Solaredge", "dev_type": "SE10K-RWS_PAC+Bat_rUIP", // will be prefixed by "meter_" "delay_accumulated": false, // false: always read accumulated value, like import_wh / export_wh when reading instantaneous values // "upd_delay": 8000, // minimum interval between updates in msec // modbus parameters "modbus_read": 3, // function code to read registers "modbus_read_max_registers": 96, "modbus_write": 16, // function code to write register(s) "modbus_write_max_registers": 64, // values used to build the model string "type_designation": { "address": "40020", // "fixed": "SE10K-RWS48BEN4", "type": "string", "length": 15 }, "version": { "address": "40044", // "fixed": "0004.0020.0032", "type": "string", "length": 14 }, "firmware_version": { "fixed": "n.v." }, "serial": { "address": "40052", // "fixed": "7E1FA837", "type": "string", "length": 8 // "fixed": "1.0" }, "I_AC_CurrentA": { "address": "40072", "type": "int16", }, "I_AC_CurrentB": { "address": "40073", "type": "int16", }, "I_AC_CurrentC": { "address": "40074", "type": "int16", }, "I_AC_Current_SF": { "address": "40075", "type": "int16", }, "current_SF_mA": { "expr": "10^(I_AC_Current_SF+3)", }, "current_l1": { "expr": "max(I_AC_CurrentA*current_SF_mA+current_bat,0)", }, "current_l2": { "expr": "max(I_AC_CurrentB*current_SF_mA+current_bat,0)", }, "current_l3": { "expr": "max(I_AC_CurrentC*current_SF_mA+current_bat,0)", }, "I_AC_VoltageAN": { "address": 40079, "type": "int16" }, "I_AC_VoltageBN": { "address": 40080, "type": "int16" }, "I_AC_VoltageCN": { "address": 40081, "type": "int16" }, "I_AC_Voltage_SF": { "address": 40082, "type": "int16" }, "voltage_SF_V": { "expr": "10^(I_AC_Voltage_SF)" }, "voltage_l1": { "expr": "I_AC_VoltageAN*10^(voltage_SF_V)" }, "voltage_l2": { "expr": "I_AC_VoltageBN*10^(voltage_SF_V)" }, "voltage_l3": { "expr": "I_AC_VoltageCN*10^(voltage_SF_V)" }, "voltage_mean": { "expr": "(voltage_l1+voltage_l2+voltage_l3)/3" }, "I_AC_Power": { "address": "40083", "type": "int16", }, "I_AC_Power_SF": { "address": "40084", "type": "int16", }, "power_w": { "expr": "max(I_AC_Power*10^I_AC_Power_SF+M6.power_w,0)", }, "current_bat": { "expr": "M6.power_w*1000/690", }, "import_wh": { "address": "40093", "type": "uint64" } } ----file:user_meters/meter_SE10K_LG_RESU12CANfloat32.json { //Diese Datei liest die aktuellen Leistungsdaten und den Ladezustand (SoC) einer //über CAN an den Wechselrichter Solaredge_SE10K-RWS angeschlossenen Batterie //RESU12 von LG "rtype": 0, // 0 = modbus, 1 = http/json "name": "SolarEdge LG RESU12 Batteryf", // as displayed in the config dialog "manufacturer": "LG", "dev_type": "LG_Battery", // will be prefixed by "meter_" "upd_delay": 8000, // minimum interval between updates in msec // modbus parameters "modbus_read": 3, // function code to read registers "modbus_read_max_registers": 20, "modbus_write": 16, // function code to write register(s) "modbus_write_max_registers": 64, // values used to build the model string "type_designation": { "fixed": "RESU12" }, "version": { "fixed": "n.v." }, "firmware_version": { "fixed": "n.v." }, "serial": { "fixed": "n.v." }, // change this register if you need another value "power_w": { "address": 62836, "type": "float", "order": "LH" }, // "voltage": { // "expr": "48", // }, // "current_l1": { // "expr": "power_w/voltage", // }, "soc": { "address": 62852, "type": "float", "order": "LH" }, } ----file:user_meters/meter_SolarEdge_grid_read_UIP.json { "rtype": 0, // 0 = modbus, 1 = http/json "name": "Solaredge Grid Meter_rUIP", // as displayed in the config dialog "manufacturer": "Solaredge", "dev_type": "Solaredge_grid_rUIP", // will be prefixed by "meter_" // "upd_delay": 8000, // minimum interval between updates in msec // modbus parameters "modbus_read": 3, // function code to read registers "modbus_read_max_registers": 96, "modbus_write": 16, // function code to write register(s) "modbus_write_max_registers": 64, // values used to build the model string "type_designation": { "address": 40139, "type": "string", "length": 16 }, "version": { "address": 40163, "type": "string", "length": 8 }, "firmware_version": { "fixed": "n.v." }, "serial": { "address": 40171, "type": "string", "length": 16 }, // instantaneous values //Stromwerte aus PV (plus Batterie) "M_AC_Current_A": { "address": 40191, "type": "int16" }, "M_AC_Current_B": { "address": 40192, "type": "int16" }, "M_AC_Current_C": { "address": 40193, "type": "int16" }, "M_AC_Current_SF": { "address": 40194, "type": "int16" }, "current_SF_mA": { //Scale Faktor zu mA "expr": "10^(M_AC_Current_SF+3)" }, "current_l1": { "expr": "M_AC_Current_A*current_SF_mA" }, "current_l2": { "expr": "M_AC_Current_B*current_SF_mA" }, "current_l3": { "expr": "M_AC_Current_C*current_SF_mA" }, "M_AC_Voltage_AN": { "address": 40196, "type": "int16" }, "M_AC_Voltage_BN": { "address": 40197, "type": "int16" }, "M_AC_Voltage_CN": { "address": 40198, "type": "int16" }, "voltage_fact": { "address": 40203, "type": "int16" }, "voltage_SF": { "expr": "10^voltage_fact" }, "voltage_l1": { "expr": "M_AC_Voltage_AN*voltage_SF" }, "voltage_l2": { "expr": "M_AC_Voltage_BN*voltage_SF" }, "voltage_l3": { "expr": "M_AC_Voltage_CN*voltage_SF" }, // change this register if you need another value "M_AC_Power": { "address": 40206, "type": "int16" }, "M_AC_Power_A": { "address": 40207, "type": "int16" }, "M_AC_Power_B": { "address": 40208, "type": "int16" }, "M_AC_Power_C": { "address": 40209, "type": "int16" }, "M_AC_Power_SF": { "address": 40210, "type": "int16" }, "power_w_fact": { "expr": "10^M_AC_Power_SF" }, "power_w": { "expr": "M_AC_Power*power_w_fact" }, "power_w_l1": { "expr": "M_AC_Power_A*power_w_fact" }, "power_w_l2": { "expr": "M_AC_Power_B*power_w_fact" }, "power_w_l3": { "expr": "M_AC_Power_C*power_w_fact" }, // accumulated values ins Haus geholt "import_wh": { "address": 40236, "type": "int32" }, // accumulated values vom Haus rückgespeist "export_wh": { "address": 40226, "type": "int32" }, // inputs // "inputs": [ // ] }