maxwroc / battery-state-card

Battery state card for Home Assistant
MIT License
848 stars 38 forks source link

sensor value returned between 0 and 500 w #723

Open polpas opened 4 months ago

polpas commented 4 months ago

Hi there,

I receive a value from entity_id between 0 and 500. How can I make state evaluates if value is higher than 100 W to use the secondary message of "charging in progress"?

If I use instead of state the function above the message is allways appearing even if value is less than 100

"- entity: sensor.ac200max_battery_level name: Bluetti AC200M secondary_info: '{charging}' charging_state: entity_id: sensor.ac200max_ac_input state above: 100 secondary_info_text: Charging in progress"