Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set last = states('input_datetime.solax_inverter_battery_1_capacity_last_over_99') %}
- {% if last not in ['unknown', 'unavailable', 'none', ''] %}
- {{ ((as_timestamp(now()) - as_timestamp(last)) / 86400) | round(1) }}
- {% else %}
- unknown
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment