Closed lamixer closed 11 months ago
Hi. Happy to add this. What integration are you using? Re the watts/kilowatts if you have any improvements to the code or suggestions I will take a look?
I'm using this integration: https://github.com/nathanmarlor/foxess_modbus
I'm not much of a coder ... if you tell me what file to browse that would help. My thought on the Watt/kW is that you could have an optional flag to change the card's expectation of the power unit. No flags = current set up (not break compatibility).
For example, inverter_power_175: is expecting watts, but my inverter sensor.foxess_rpower is in kilowatts. So could have flag
inverter_power_175_is_kW: true
(defaults to false)
Not sure if it would be too messy and people who need to change to watts just have to do as I did and make a template.yaml conversion to feed the card the way it likes things!
Can you confirm that your sensors have the correct unit of measurement set i.e. kW If so it should be relatively easy to build this check into the code.
Hello slipx06
I didn't manually set any of the units of measure, and they seem to be correct since I am using some of them with other cards and they seem to show correctly. Here's a list of most of the sensors:
number.foxess_max_charge_current
Max Charge Current (FoxESS)
18.0 min: 0 max: 50
step: 0.1
mode: box
unit_of_measurement: A
device_class: current
friendly_name: Max Charge Current (FoxESS)
number.foxess_max_discharge_current
Max Discharge Current (FoxESS)
32.0 min: 0 max: 50
step: 0.1
mode: box
unit_of_measurement: A
device_class: current
friendly_name: Max Discharge Current (FoxESS)
number.foxess_max_soc
Max SoC (FoxESS)
98 min: 10 max: 100
step: 1
mode: box
unit_of_measurement: %
device_class: battery
icon: mdi:battery-arrow-up
friendly_name: Max SoC (FoxESS)
number.foxess_min_soc
Min SoC (FoxESS)
10 min: 10 max: 100
step: 1
mode: box
unit_of_measurement: %
device_class: battery
icon: mdi:battery-arrow-down
friendly_name: Min SoC (FoxESS)
number.foxess_min_soc_on_grid
Min SoC (On Grid) (FoxESS)
35 min: 10 max: 100
step: 1
mode: box
unit_of_measurement: %
device_class: battery
icon: mdi:battery-arrow-down
friendly_name: Min SoC (On Grid) (FoxESS)
select.foxess_work_mode
Work Mode (FoxESS)
Self Use options: Self Use, Feed-in First, Back-up
friendly_name: Work Mode (FoxESS)
sensor.foxess_ambtemp
Ambient Temp (FoxESS)
37.6 state_class: measurement
unit_of_measurement: °C
device_class: temperature
friendly_name: Ambient Temp (FoxESS)
sensor.foxess_bat_current
Battery Current (FoxESS)
-1.2 state_class: measurement
unit_of_measurement: A
device_class: current
friendly_name: Battery Current (FoxESS)
sensor.foxess_battery_charge
Battery Charge (FoxESS)
0 state_class: measurement
unit_of_measurement: kW
device_class: power
icon: mdi:battery-arrow-up-outline
friendly_name: Battery Charge (FoxESS)
sensor.foxess_battery_charge_today
Battery Charge Today (FoxESS)
14.7 state_class: total_increasing
unit_of_measurement: kWh
device_class: energy
icon: mdi:battery-arrow-up-outline
friendly_name: Battery Charge Today (FoxESS)
sensor.foxess_battery_charge_total
Battery Charge Total (FoxESS)
1153.6 state_class: total
unit_of_measurement: kWh
device_class: energy
icon: mdi:battery-arrow-up-outline
friendly_name: Battery Charge Total (FoxESS)
sensor.foxess_battery_discharge
Battery Discharge (FoxESS)
0.647 state_class: measurement
unit_of_measurement: kW
device_class: power
icon: mdi:battery-arrow-down-outline
friendly_name: Battery Discharge (FoxESS)
sensor.foxess_battery_discharge_today
Battery Discharge Today (FoxESS)
3.9 state_class: total_increasing
unit_of_measurement: kWh
device_class: energy
icon: mdi:battery-arrow-down-outline
friendly_name: Battery Discharge Today (FoxESS)
sensor.foxess_battery_discharge_total
Battery Discharge Total (FoxESS)
1297.2 state_class: total
unit_of_measurement: kWh
device_class: energy
icon: mdi:battery-arrow-down-outline
friendly_name: Battery Discharge Total (FoxESS)
sensor.foxess_battery_soc
Battery SoC (FoxESS)
92 state_class: measurement
unit_of_measurement: %
device_class: battery
friendly_name: Battery SoC (FoxESS)
sensor.foxess_battery_temp
Battery Temp (FoxESS)
33.3 state_class: measurement
unit_of_measurement: °C
device_class: temperature
friendly_name: Battery Temp (FoxESS)
sensor.foxess_batvolt
Battery Voltage (FoxESS)
325.5 state_class: measurement
unit_of_measurement: V
device_class: voltage
friendly_name: Battery Voltage (FoxESS)
sensor.foxess_bms_cell_mv_high
BMS Cell mV High (FoxESS)
3325 state_class: measurement
unit_of_measurement: mV
device_class: voltage
friendly_name: BMS Cell mV High (FoxESS)
sensor.foxess_bms_cell_mv_low
BMS Cell mV Low (FoxESS)
3321 state_class: measurement
unit_of_measurement: mV
device_class: voltage
friendly_name: BMS Cell mV Low (FoxESS)
sensor.foxess_bms_cell_temp_high
BMS Cell Temp High (FoxESS)
27.7 state_class: measurement
unit_of_measurement: °C
device_class: temperature
friendly_name: BMS Cell Temp High (FoxESS)
sensor.foxess_bms_cell_temp_low
BMS Cell Temp Low (FoxESS)
21.8 state_class: measurement
unit_of_measurement: °C
device_class: temperature
friendly_name: BMS Cell Temp Low (FoxESS)
sensor.foxess_bms_cycle_count
BMS Cycle Count (FoxESS)
37 state_class: measurement
icon: mdi:counter
friendly_name: BMS Cycle Count (FoxESS)
sensor.foxess_bms_kwh_remaining
BMS kWh Remaining (FoxESS)
28.91 state_class: total
unit_of_measurement: kWh
device_class: energy
friendly_name: BMS kWh Remaining (FoxESS)
sensor.foxess_feed_in
Feed-in (FoxESS)
0 state_class: measurement
unit_of_measurement: kW
device_class: power
icon: mdi:transmission-tower-import
friendly_name: Feed-in (FoxESS)
sensor.foxess_feed_in_energy_today
Feed-in Today (FoxESS)
0.0 state_class: total_increasing
unit_of_measurement: kWh
device_class: energy
icon: mdi:transmission-tower-import
friendly_name: Feed-in Today (FoxESS)
sensor.foxess_feed_in_energy_total
Feed-in Total (FoxESS)
49.8 state_class: total
unit_of_measurement: kWh
device_class: energy
icon: mdi:transmission-tower-import
friendly_name: Feed-in Total (FoxESS)
sensor.foxess_grid_consumption
Grid Consumption (FoxESS)
0.011 state_class: measurement
unit_of_measurement: kW
device_class: power
icon: mdi:transmission-tower-export
friendly_name: Grid Consumption (FoxESS)
sensor.foxess_grid_consumption_energy_today
Grid Consumption Today (FoxESS)
31.4 state_class: total_increasing
unit_of_measurement: kWh
device_class: energy
icon: mdi:transmission-tower-export
friendly_name: Grid Consumption Today (FoxESS)
sensor.foxess_grid_consumption_energy_total
Grid Consumption Total (FoxESS)
1714.7 state_class: total
unit_of_measurement: kWh
device_class: energy
icon: mdi:transmission-tower-export
friendly_name: Grid Consumption Total (FoxESS)
sensor.foxess_grid_ct
Grid CT (FoxESS)
-0.011 state_class: measurement
unit_of_measurement: kW
device_class: power
icon: mdi:meter-electric-outline
friendly_name: Grid CT (FoxESS)
sensor.foxess_input_energy_today
Input Energy Today (FoxESS)
15.4 state_class: total_increasing
unit_of_measurement: kWh
device_class: energy
icon: mdi:import
friendly_name: Input Energy Today (FoxESS)
sensor.foxess_input_energy_total
Input Energy Total (FoxESS)
896.7 state_class: total
unit_of_measurement: kWh
device_class: energy
icon: mdi:import
friendly_name: Input Energy Total (FoxESS)
sensor.foxess_invbatcurrent
Inverter Battery Current (FoxESS)
1.9 state_class: measurement
unit_of_measurement: A
device_class: current
friendly_name: Inverter Battery Current (FoxESS)
sensor.foxess_invbatpower
Inverter Battery Power (FoxESS)
0.647 state_class: measurement
unit_of_measurement: kW
device_class: power
friendly_name: Inverter Battery Power (FoxESS)
sensor.foxess_invbatvolt
Inverter Battery Voltage (FoxESS)
325.3 state_class: measurement
unit_of_measurement: V
device_class: voltage
friendly_name: Inverter Battery Voltage (FoxESS)
sensor.foxess_inverter_fault_code
Inverter Fault Code (FoxESS)
None icon: mdi:alert-circle-outline
friendly_name: Inverter Fault Code (FoxESS)
sensor.foxess_inverter_state
Inverter State (FoxESS)
On Grid options: Self Test, Waiting, Checking, On Grid, Off Grid / EPS, Recoverable Fault, Unrecoverable Fault
device_class: enum
friendly_name: Inverter State (FoxESS)
sensor.foxess_invtemp
Inverter Temp (FoxESS)
32.8 state_class: measurement
unit_of_measurement: °C
device_class: temperature
friendly_name: Inverter Temp (FoxESS)
sensor.foxess_load_energy_today
Load Energy Today (FoxESS)
19.3 state_class: total_increasing
unit_of_measurement: kWh
device_class: energy
icon: mdi:home-lightning-bolt-outline
friendly_name: Load Energy Today (FoxESS)
sensor.foxess_load_power
Load Power (FoxESS)
0.495 state_class: measurement
unit_of_measurement: kW
device_class: power
icon: mdi:home-lightning-bolt-outline
friendly_name: Load Power (FoxESS)
sensor.foxess_load_power_total
Load Energy Total (FoxESS)
2326.7 state_class: total
unit_of_measurement: kWh
device_class: energy
icon: mdi:home-lightning-bolt-outline
friendly_name: Load Energy Total (FoxESS)
sensor.foxess_max_charge_current
Max Charge Current (FoxESS)
18.0 state_class: measurement
unit_of_measurement: A
device_class: current
friendly_name: Max Charge Current (FoxESS)
sensor.foxess_max_discharge_current
Max Discharge Current (FoxESS)
32.0 state_class: measurement
unit_of_measurement: A
device_class: current
friendly_name: Max Discharge Current (FoxESS)
sensor.foxess_max_soc
Max SoC (FoxESS)
98 state_class: measurement
unit_of_measurement: %
device_class: battery
icon: mdi:battery-arrow-up
friendly_name: Max SoC (FoxESS)
sensor.foxess_min_soc
Min SoC (FoxESS)
10 state_class: measurement
unit_of_measurement: %
device_class: battery
icon: mdi:battery-arrow-down
friendly_name: Min SoC (FoxESS)
sensor.foxess_min_soc_on_grid
Min SoC (On Grid) (FoxESS)
35 state_class: measurement
unit_of_measurement: %
device_class: battery
icon: mdi:battery-arrow-down
friendly_name: Min SoC (On Grid) (FoxESS)
sensor.foxess_pv1_current
PV1 Current (FoxESS)
0.0 state_class: measurement
unit_of_measurement: A
device_class: current
friendly_name: PV1 Current (FoxESS)
sensor.foxess_pv1_energy_total
PV1 Power Total (FoxESS)
255.694 state_class: total
source: sensor.foxess_pv1_power
unit_of_measurement: kWh
device_class: energy
icon: mdi:solar-power-variant-outline
friendly_name: PV1 Power Total (FoxESS)
sensor.foxess_pv1_power
PV1 Power (FoxESS)
0.019 state_class: measurement
unit_of_measurement: kW
device_class: power
icon: mdi:solar-power-variant-outline
friendly_name: PV1 Power (FoxESS)
sensor.foxess_pv1_voltage
PV1 Voltage (FoxESS)
201.1 state_class: measurement
unit_of_measurement: V
device_class: voltage
friendly_name: PV1 Voltage (FoxESS)
sensor.foxess_pv2_current
PV2 Current (FoxESS)
0.0 state_class: measurement
unit_of_measurement: A
device_class: current
friendly_name: PV2 Current (FoxESS)
sensor.foxess_pv2_energy_total
PV2 Power Total (FoxESS)
324.185 state_class: total
source: sensor.foxess_pv2_power
unit_of_measurement: kWh
device_class: energy
icon: mdi:solar-power-variant-outline
friendly_name: PV2 Power Total (FoxESS)
sensor.foxess_pv2_power
PV2 Power (FoxESS)
0.014 state_class: measurement
unit_of_measurement: kW
device_class: power
icon: mdi:solar-power-variant-outline
friendly_name: PV2 Power (FoxESS)
sensor.foxess_pv2_voltage
PV2 Voltage (FoxESS)
206.8 state_class: measurement
unit_of_measurement: V
device_class: voltage
friendly_name: PV2 Voltage (FoxESS)
sensor.foxess_pv3_current
PV3 Current (FoxESS)
0.0 state_class: measurement
unit_of_measurement: A
device_class: current
friendly_name: PV3 Current (FoxESS)
sensor.foxess_pv3_energy_total
PV3 Power Total (FoxESS)
150.139 state_class: total
source: sensor.foxess_pv3_power
unit_of_measurement: kWh
device_class: energy
icon: mdi:solar-power-variant-outline
friendly_name: PV3 Power Total (FoxESS)
sensor.foxess_pv3_power
PV3 Power (FoxESS)
0.022 state_class: measurement
unit_of_measurement: kW
device_class: power
icon: mdi:solar-power-variant-outline
friendly_name: PV3 Power (FoxESS)
sensor.foxess_pv3_voltage
PV3 Voltage (FoxESS)
262.3 state_class: measurement
unit_of_measurement: V
device_class: voltage
friendly_name: PV3 Voltage (FoxESS)
sensor.foxess_rcurrent
Inverter Current (FoxESS)
2.3 state_class: measurement
unit_of_measurement: A
device_class: current
friendly_name: Inverter Current (FoxESS)
sensor.foxess_rpower
Inverter Power (FoxESS)
0.489 state_class: measurement
unit_of_measurement: kW
device_class: power
icon: mdi:export
friendly_name: Inverter Power (FoxESS)
sensor.foxess_solar_energy_today
Solar Generation Today (FoxESS)
0.2 state_class: total_increasing
unit_of_measurement: kWh
device_class: energy
icon: mdi:solar-power
friendly_name: Solar Generation Today (FoxESS)
sensor.foxess_solar_energy_total
Solar Generation Total (FoxESS)
871.7 state_class: total
unit_of_measurement: kWh
device_class: energy
icon: mdi:solar-power
friendly_name: Solar Generation Total (FoxESS)
sensor.foxess_total_yield_today
Yield Today (FoxESS)
3.3 state_class: total_increasing
unit_of_measurement: kWh
device_class: energy
icon: mdi:export
friendly_name: Yield Today (FoxESS)
sensor.foxess_total_yield_total
Yield Total (FoxESS)
1554.9 state_class: total
unit_of_measurement: kWh
device_class: energy
icon: mdi:export
friendly_name: Yield Total (FoxESS)
sensor.pv_power_foxess
PV Power (FoxESS)
0.055 state_class: measurement
unit_of_measurement: kW
device_class: power
icon: mdi:solar-power-variant-outline
friendly_name: PV Power (FoxESS)
Version 4.1.0 will handle automatic conversion of W, kW etc. I've only implemented this for solar but will enable for the other sections soon.
Oh, great!
Then I guess if it's possible to have an inverter type 'foxess' and with those inverter statuses I listed previously, that would probably do it. Please let me know if you need any additional information.
I would be happy to share my configuration, though I'm not sure it is 100% correct. I could not get essential_power and nonessential_power to show me numbes that seemed correct without specifying them, but that could be due to quirks of my particular set up. You can see the entities that end in _watts are ones I had to convert from kW.
I'd be happy to hear from the expert if something doesn't look right.
type: custom:sunsynk-power-flow-card
cardstyle: full
panel_mode: true
card_width: 80%
show_solar: true
inverter:
auto_scale: true
colour: '#b6baa9'
modern: true
battery:
energy: 33000
shutdown_soc: 35
colour: pink
full_capacity: 87
max_power: 9000
show_daily: true
auto_scale: true
solar:
show_daily: true
mppts: 3
auto_scale: false
max_power: 5000
pv1_name: 1 South F
pv2_name: 2 South R
pv3_name: 3 North
load:
show_daily: false
auto_scale: true
additional_loads: 2
load1_name: HW
load1_icon: mdi:water-boiler
load2_name: Kitchen
load2_icon: mdi:stove
show_aux: true
aux_name: Climate
aux_loads: 2
aux_load1_name: Mitsu AC/Heat
aux_load1_icon: mdi:heat-pump-outline
aux_load2_name: Mirror Heater
aux_load2_icon: mdi:mirror-rectangle
essential_name: Main
grid:
show_daily_buy: true
show_daily_sell: true
max_power: 12000
auto_scale: true
show_nonessential: true
nonessential_name: EV
nonessential_icon: mdi:ev-station
entities:
use_timer_248: 'no'
priority_load_243: 'no'
inverter_voltage_154: sensor.emontx4_vrms
inverter_current_164: sensor.foxess_rcurrent
inverter_power_175: sensor.sensor_foxess_rpower_watts
grid_connected_status_194: none
inverter_status_59: sensor.foxess_inverter_fault_code
day_battery_charge_70: sensor.foxess_battery_charge_today
day_battery_discharge_71: sensor.foxess_battery_discharge_today
battery_voltage_183: sensor.foxess_batvolt
battery_soc_184: sensor.foxess_battery_soc
battery_power_190: sensor.sensor_foxess_invbatpower_watts
battery_current_191: sensor.foxess_invbatcurrent
day_grid_import_76: sensor.foxess_grid_consumption_energy_today
day_grid_export_77: sensor.foxess_feed_in_energy_today
grid_power_169: sensor.sensor_foxess_load_power_watts
grid_ct_power_172: sensor.sensor_foxess_grid_ct_watts
day_load_energy_84: sensor.foxess_load_energy_today
essential_power: sensor.essential_total_power
nonessential_power: sensor.emontx4_p3
aux_power_166: sensor.aux_total_power
day_pv_energy_108: sensor.foxess_solar_energy_today
pv1_power_186: sensor.sensor_foxess_pv1_watts
pv2_power_187: sensor.sensor_foxess_pv2_watts
pv3_power_188: sensor.sensor_foxess_pv3_watts
pv1_voltage_109: sensor.foxess_pv1_voltage
pv1_current_110: sensor.foxess_pv1_current
pv2_voltage_111: sensor.foxess_pv2_voltage
pv2_current_112: sensor.foxess_pv2_current
pv3_voltage_113: sensor.foxess_pv3_voltage
pv3_current_114: sensor.foxess_pv3_current
nonessential_load1: sensor.emontx4_p3
essential_load1: sensor.emontx4_p8
essential_load2: sensor.kitchen_power
aux_load1: sensor.emontx4_p12
aux_load2: sensor.shlyclkrm_heater_power
aux_load2_extra: sensor.shlycloakroom_temperature_2
energy_cost_buy: sensor.octopus_energy_electricity_xxx_yyy_current_rate
energy_cost_sell: >-
sensor.octopus_energy_electricity_xxx_yyy_export_current_rate
and image attached of what it looks like (rainy day)!
...I actually should have started this request with a big THANK YOU for all the work you are putting into this. It's very useful and is probably the card that I look at most now ... it shows all the key things I want to see in a clear way. I'm also impressed with the rapid development / releases going on right now!
Thanks for the info. Yes we can add the inverter type foxess and the example card. Is this the correct inverter image
That's a good image. Mine is just slighly different in the display area but I think that is good to go. I personally think it looks weird to have a real photo in the card so I'll keep the art you have now.
This is the proposed status mapping
foxess: {
standby: {states: ['waiting'], color: 'blue', message: localize('common.standby')},
selftest: {states: ['self test', ], color: 'yellow', message: localize('common.selftest')},
ongrid: {states: ['on-grid'], color: 'green', message: localize('common.ongrid') },
offgrid: { states: ['off grid / eps'], color: 'green', message: localize('common.offgrid')},
fault: {states: ['recoverable fault', 'unrecoverable fault' ], color: 'red', message: localize('common.fault')},
check: {states: ['checking'], color: 'orange', message: localize('common.check')},
}
Have you manged to test if the following sensors handle your kW input correctly on the new card version
pv1_power_186: sensor.sensor_foxess_pv1
pv2_power_187: sensor.sensor_foxess_pv2
pv3_power_188: sensor.sensor_foxess_pv3
I haven't tried it. I just now changed it, the correct original foxess entity name is:
sensor.foxess_pv1_power
There are four of them available, I only use three.
If there's a way I can test the status mapping before you push it I'd be happy to. Otherwise I'll probably be the only person to try it right away so doesn't much matter!
Thank you!
... will have to wait until the sun comes up to confirm the solar numbers seem correct.
I'll push 4.2.0 with the updates
https://github.com/slipx06/sunsynk-power-flow-card/releases/tag/v4.2.0
Not tested the inverter grid status yet, but it loaded up fine and pulled up the picture. Great!
Also, I think I should be using autarky: energy like some of the other examples do, but honestly, I'm not too sure what that number should be for me. If it means 'self-sufficiency' then the lower number would be more accurate than the 100% I was seeing before. Now it's showing 44% but that seems high since I only generated 1.7 kW today.
Great. I prefer to use power to calculate autarky as it shows the value in real time. However if you set it to energy It is calculated based on the formula below.
//Autarky in Percent = Home Production / Home Consumption
//Ratio in Percent = Home Consumption / Home Production
//let production_e = parseFloat(state_day_pv_energy.state) + parseFloat(state_day_battery_discharge.state);
//let consumption_e = parseFloat(state_day_load_energy.state) + parseFloat(state_day_battery_charge.state);
Thanks for that, sorry I see it's in the docs.
Ah, I get it now. My autarky is 100% because I'm using my battery now, not the grid. Though the battery was filled by using the grid, so maybe not really autarky of 100%. I'll play with it and watch it more to learn what's best for me.
Just switched off the grid to test. I correctly get the grid down icon!
Note, in my example config I had grid_connected_status_194: none but obviously now I need grid_connected_status_194: sensor.foxess_inverter_state.
I think I should also use:
inverter_status_59: sensor.foxess_inverter_state
since the fault codes (I had assigned to that) don't make much sense and can output more than one at a time. So, please update the example config to use the state for _59.
I'm tired now! Should stop typing! Thank you.
apologies for not spotting it before... this one is wrong:
ongrid: {states: ['on-grid'], color: 'green', message: localize('common.ongrid') },
shoudl be 'on grid' with a space.
It's showing actually as 'On Grid' not sure capitalisation counts. When the grid was down that worked though.
Thanks I've fixed the typo. It converts those status messages to lowercase. I'll also update the example.
For the grid connected status it only accepts 0/1/on/off/On-Grid/Off-Grid. You may need to create a template sensor. I'm going to update the logic to also accept on grid
and off grid
You may get strange results if the sensor you are using provides some other value i.e. checking
Those strange results should be brief and wouldn't bother me. I don't see any other sensor that shows only grid on / off.
Regarding the W/kW auto-detection on the MPPTs ... works for each individual one, but the sum (auto-calculated by the card I guess) is only showing zero.
Thanks for confirming. I see what the issue is. Will fix in the next release
Looking good. Will test further when I can take the inverter offline. Thanks. On 4 Dec 2023, at 11:51, slipx06 @.***> wrote: Please test https://github.com/slipx06/sunsynk-power-flow-card/releases/tag/v4.2.1
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
The latest version 4.3 should now work with all your kW sensors
Sorry for not being available to try that. I did now just update to the latest (4.3.1) and it is all working well, including removing my conversions to watts. To that end, we should update the example config. You could replace the example config with this if you wish:
type: custom:sunsynk-power-flow-card
cardstyle: full
panel_mode: true
card_width: 80%
show_solar: true
inverter:
auto_scale: true
colour: '#b6baa9'
modern: true
model: foxess
autarky: power
battery:
energy: 33000
shutdown_soc: 35
colour: pink
full_capacity: 87
max_power: 9000
show_daily: true
auto_scale: true
solar:
show_daily: true
mppts: 3
auto_scale: true
max_power: 5000
pv1_name: 1 South F
pv2_name: 2 South R
pv3_name: 3 North
load:
show_daily: false
auto_scale: true
additional_loads: 2
load1_name: HW
load1_icon: mdi:water-boiler
load2_name: Kitchen
load2_icon: mdi:stove
show_aux: true
aux_name: Climate
aux_loads: 2
aux_load1_name: Mitsu AC/Heat
aux_load1_icon: mdi:heat-pump-outline
aux_load2_name: Mirror Heater
aux_load2_icon: mdi:mirror-rectangle
essential_name: Main
grid:
show_daily_buy: true
show_daily_sell: true
max_power: 12000
auto_scale: true
show_nonessential: true
nonessential_name: EV
nonessential_icon: mdi:ev-station
entities:
use_timer_248: 'no'
priority_load_243: 'no'
inverter_voltage_154: sensor.emontx4_vrms
inverter_current_164: sensor.foxess_rcurrent
inverter_power_175: sensor.foxess_rpower
grid_connected_status_194: sensor.foxess_inverter_state
inverter_status_59: sensor.foxess_inverter_state
day_battery_charge_70: sensor.foxess_battery_charge_today
day_battery_discharge_71: sensor.foxess_battery_discharge_today
battery_voltage_183: sensor.foxess_batvolt
battery_soc_184: sensor.foxess_battery_soc
battery_power_190: sensor.foxess_invbatpower
battery_current_191: sensor.foxess_invbatcurrent
day_grid_import_76: sensor.foxess_grid_consumption_energy_today
day_grid_export_77: sensor.foxess_feed_in_energy_today
grid_power_169: sensor.foxess_load_power
grid_ct_power_172: sensor.foxess_grid_ct
day_load_energy_84: sensor.foxess_load_energy_today
essential_power: sensor.essential_total_power
nonessential_power: sensor.emontx4_p3
aux_power_166: sensor.aux_total_power
day_pv_energy_108: sensor.foxess_solar_energy_today
pv1_power_186: sensor.foxess_pv1_power
pv2_power_187: sensor.foxess_pv2_power
pv3_power_188: sensor.foxess_pv3_power
pv1_voltage_109: sensor.foxess_pv1_voltage
pv1_current_110: sensor.foxess_pv1_current
pv2_voltage_111: sensor.foxess_pv2_voltage
pv2_current_112: sensor.foxess_pv2_current
pv3_voltage_113: sensor.foxess_pv3_voltage
pv3_current_114: sensor.foxess_pv3_current
nonessential_load1: sensor.emontx4_p3
essential_load1: sensor.emontx4_p8
essential_load2: sensor.kitchen_power
aux_load1: sensor.emontx4_p12
aux_load2: sensor.shlyclkrm_heater_power
aux_load2_extra: sensor.shlycloakroom_temperature_2
energy_cost_buy: sensor.octopus_energy_electricity_xxx_yyy_current_rate
energy_cost_sell: sensor.octopus_energy_electricity_xxx_yyy_export_current_rate
Great. I'll update the example and close this.
Is there an existing issue for this?
Current Behavior
Card can be pretty well adapted to Fox ESS inverters, but room for improvement if you are interested.
Expected behaviour
Issues mainly are the inverter statuses, which can be:
Self Test, Waiting, Checking, On Grid, Off Grid / EPS, Recoverable Fault, Unrecoverable Fault
Also, I have to have Home Assistant convert many power readings from kW to Watts. I wonder if the card could have optional flags to accept input of kW instead of the Watts it expects so external conversion (via HA Template entries) is not necessary.
Possible Solutions
maybe I can help, not sure!
Mode
Both
Context / Reason
FoxESS inverters are popular in South Africa (elsewhere perhaps also) and are becoming more popular in the UK where I am based.