Home assistant state template. {% if state_attr('sensor.