slipx06 / sunsynk-power-flow-card

⚡A customizable Home Assistant card to emulate the Sunsynk System flow that's displayed on the Inverter screen.
MIT License
161 stars 48 forks source link

max_sell_power - Unknown / Unavailable #482

Closed Roving-Ronin closed 19 hours ago

Roving-Ronin commented 1 week ago

Is there an existing issue for this?

Current Behavior

Hi @slipx06 Just wondering if max_sell_power might be able to support 'Unknown' and 'Unavailable' ? Looking at it and the Huawei / iStore inverters sensor for this takes ~15min to update, probably given as its not a regularly changing sensor unlike other sensors. Thinking that instead of the card showing "Limit: 0" in these situations, that could give the wrong view to a user (that grid export is totally disabled) that it might be better to show the 'Unknown' and 'Unavailable' status?

Expected behaviour

'Unknown' and 'Unavailable' readings from sensors used to populate max_sell_power are passed through on the card, not just numerical values.

Possible Solutions

See above.

Mode

Both

Context / Reason

Currently 'Unknown' and 'Unavailable' is shows as "Limit: 0", that could be mistaken by a user to mean their inverter(s) have disabled all grid exports.

slipx06 commented 1 week ago

Hi @Roving-Ronin. In addition to max_sell_power: there is a small icon on the card that shows you whether export is disabled or not so I don't think this is necessary. You can provide the following sensor to activate

solar_sell_247: | Optional | switch.sunsynk_toggle_solar_sell | Displays icons to indicate if sell solar is active or not. The switch can be toggled by clicking on the icon (on/off, 1/0)

image image