InToSSH

HA - Solax battery over 99% template

Oct 13th, 2025
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. {% set last = states('input_datetime.solax_inverter_battery_1_capacity_last_over_99') %}
  2. {% if last not in ['unknown', 'unavailable', 'none', ''] %}
  3. {{ ((as_timestamp(now()) - as_timestamp(last)) / 86400) | round(1) }}
  4. {% else %}
  5. unknown
  6. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment