<% status = status_info %>
<%= image_tag(status_icon) %>
<%= status[:value] %>
<%= status[:heating_duration] %>
<%= h @next_event.date.strftime("%a") rescue "No" %>
<%= h @next_event.date.strftime("%d") rescue "Next" %>
<%= h @next_event.date.strftime("%b") rescue "Event" %>
<%= h @next_event.date.strftime("%H:%M") rescue "" %>
<%= status[:power] %>
<%= status[:heating_left] %>
<%= switch_tags %>
<%= extend_heating_tags %>