'Return the state attributes of the device.'

@property
def device_state_attributes(self):

    try:
        ui_temp = self.units.temperature(int(self.data.temperature), TEMP_CELSIUS)
        temperature = ('%i    %s' % (ui_temp, self.units.temperature_unit))
    except (ValueError, TypeError):
        temperature = STATE_UNKNOWN
    try:
        current_consumption = ('%.2f    W' % float(self.data.current_consumption))
    except ValueError:
        current_consumption = STATE_UNKNOWN
    try:
        total_consumption = ('%.1f    kWh' % float(self.data.total_consumption))
    except ValueError:
        total_consumption = STATE_UNKNOWN
    attrs = {ATTR_CURRENT_CONSUMPTION: current_consumption, ATTR_TOTAL_CONSUMPTION: total_consumption, ATTR_TEMPERATURE: temperature}
    return attrs
